Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") translateModel(Modelica.Electrical.Analog.Examples.DifferenceAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C1.v|C2.v|C3.v|C4.v|C5.v|Transistor1.Tr.C.v|Transistor1.ct.v|Transistor2.Tr.C.v|Transistor2.ct.v",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001239/0.001239, allocations: 109.4 kB / 18.4 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00112/0.00112, allocations: 179.1 kB / 19.33 MB, free: 3.777 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.359/1.359, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001167/0.001167, allocations: 59.86 kB / 329.2 MB, free: 3.289 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08178/0.08296, allocations: 46.6 MB / 375.8 MB, free: 4.574 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DifferenceAmplifier): time 0.1743/0.2573, allocations: 5.706 MB / 381.5 MB, free: 9.738 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002658/0.26, allocations: 1.447 MB / 383 MB, free: 9.633 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005338/0.2605, allocations: 17.72 kB / 383 MB, free: 9.629 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004034/0.261, allocations: 156.8 kB / 383.1 MB, free: 9.543 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006836/0.2617, allocations: 268.8 kB / 383.4 MB, free: 9.406 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009197/0.2626, allocations: 362.8 kB / 383.8 MB, free: 9.391 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001672/0.2643, allocations: 1.236 MB / 385 MB, free: 8.953 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006623/0.265, allocations: 426.9 kB / 385.4 MB, free: 8.754 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008803/0.2659, allocations: 458.5 kB / 385.9 MB, free: 8.539 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00069/0.2666, allocations: 0.5273 MB / 386.4 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001947/0.2668, allocations: 125 kB / 386.5 MB, free: 8.273 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003568/0.2671, allocations: 158.5 kB / 386.7 MB, free: 8.262 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001876/0.2673, allocations: 253.5 kB / 386.9 MB, free: 8.09 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004407/0.2678, allocations: 0.5418 MB / 387.5 MB, free: 7.754 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001466/0.2693, allocations: 1.401 MB / 388.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2693, allocations: 1.688 kB / 388.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.2693, allocations: 0.7031 kB / 388.9 MB, free: 7.242 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.49e-05/0.2693, allocations: 0 / 388.9 MB, free: 7.242 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 203 * Number of variables: 203 Notification: Performance of Generate backend data structure: time 0.002686/0.272, allocations: 1.29 MB / 390.2 MB, free: 6.414 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.2721, allocations: 13.09 kB / 390.2 MB, free: 6.41 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.2723, allocations: 104.6 kB / 390.3 MB, free: 6.359 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007259/0.273, allocations: 0.5152 MB / 390.8 MB, free: 5.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.6e-05/0.2731, allocations: 58.25 kB / 390.8 MB, free: 5.934 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001357/0.2732, allocations: 81.22 kB / 390.9 MB, free: 5.906 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001564/0.2748, allocations: 0.8826 MB / 391.8 MB, free: 5.531 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.93e-05/0.2748, allocations: 3.938 kB / 391.8 MB, free: 5.527 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.044e-05/0.2749, allocations: 36.78 kB / 391.8 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.807e-05/0.2749, allocations: 19.56 kB / 391.9 MB, free: 5.5 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001517/0.2765, allocations: 0.7866 MB / 392.6 MB, free: 5.219 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004989/0.2815, allocations: 3.021 MB / 395.7 MB, free: 3.496 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001038/0.2825, allocations: 0.6541 MB / 396.3 MB, free: 3.18 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000658/0.2832, allocations: 408.1 kB / 396.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.497e-05/0.2833, allocations: 14.09 kB / 396.7 MB, free: 3.012 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.234e-05/0.2833, allocations: 40.48 kB / 396.8 MB, free: 2.969 MB / 318.1 MB Notification: Performance of pre-optimization done (n=67): time 3.477e-06/0.2833, allocations: 4 kB / 396.8 MB, free: 2.965 MB / 318.1 MB Notification: Performance of matching and sorting (n=71): time 0.004491/0.2878, allocations: 2.187 MB / 399 MB, free: 1.828 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.953e-05/0.2879, allocations: 59.36 kB / 399 MB, free: 1.766 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006361/0.2885, allocations: 0.5036 MB / 399.5 MB, free: 1.527 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.168e-05/0.2886, allocations: 37.39 kB / 399.6 MB, free: 1.488 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002172/0.2888, allocations: 394.1 kB / 399.9 MB, free: 1.18 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000168/0.289, allocations: 258.3 kB / 400.2 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002301/0.2893, allocations: 134 kB / 400.3 MB, free: 0.9102 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001239/0.2894, allocations: 384.4 kB / 400.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005632/0.29, allocations: 303.1 kB / 401 MB, free: 456 kB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006508/0.2906, allocations: 434 kB / 401.4 MB, free: 204 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001454/0.2921, allocations: 0.7601 MB / 402.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.2921, allocations: 1.125 kB / 402.2 MB, free: 15.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=99) (initialization): time 0.002246/0.2944, allocations: 1.033 MB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.2944, allocations: 10.22 kB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.178e-05/0.2944, allocations: 2.031 kB / 403.2 MB, free: 15.39 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006464/0.2951, allocations: 190.5 kB / 403.4 MB, free: 15.32 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008326/0.2959, allocations: 182.3 kB / 403.6 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004018/0.2999, allocations: 2.858 MB / 406.5 MB, free: 12.92 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008542/0.3008, allocations: 37.61 kB / 406.5 MB, free: 12.9 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.949e-05/0.3009, allocations: 31.64 kB / 406.5 MB, free: 12.89 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004698/0.3014, allocations: 225.1 kB / 406.7 MB, free: 12.7 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001582/0.3016, allocations: 70.91 kB / 406.8 MB, free: 12.66 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001938/0.3018, allocations: 85.36 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.3018, allocations: 11.91 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.001e-05/0.3018, allocations: 2.125 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.807e-06/0.3018, allocations: 4.984 kB / 406.9 MB, free: 12.59 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001239/0.3031, allocations: 0.8336 MB / 407.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.419e-06/0.3031, allocations: 0 / 407.7 MB, free: 11.95 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007146/0.3038, allocations: 144.2 kB / 407.9 MB, free: 11.92 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005505/0.3044, allocations: 183.9 kB / 408.1 MB, free: 11.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.241e-05/0.3044, allocations: 26.88 kB / 408.1 MB, free: 11.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003833/0.3083, allocations: 2.855 MB / 410.9 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.148e-06/0.3083, allocations: 7.938 kB / 411 MB, free: 9.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002751/0.3111, allocations: 1.38 MB / 412.3 MB, free: 8.617 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002608/0.3114, allocations: 136.7 kB / 412.5 MB, free: 8.48 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001069/0.3115, allocations: 20.69 kB / 412.5 MB, free: 8.465 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005691/0.3121, allocations: 52.45 kB / 412.5 MB, free: 8.441 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001431/0.3122, allocations: 54.48 kB / 412.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.3123, allocations: 23.23 kB / 412.6 MB, free: 8.398 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004284/0.3127, allocations: 357 kB / 413 MB, free: 8.188 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3127, allocations: 0 / 413 MB, free: 8.188 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0008951/0.3136, allocations: 222.9 kB / 413.2 MB, free: 8.16 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 9 (C1.v,C4.v,C5.v,C2.v,C3.v,Transistor1.ct.v,Transistor1.Tr.C.v,Transistor2.ct.v,Transistor2.Tr.C.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(5,11,68.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002653/0.3139, allocations: 135.8 kB / 413.3 MB, free: 8.047 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002288/0.3162, allocations: 1.004 MB / 414.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 6.091e-06/0.3162, allocations: 1.375 kB / 414.3 MB, free: 7.5 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001459/0.3177, allocations: 0.6355 MB / 415 MB, free: 7.125 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008975/0.3186, allocations: 142.7 kB / 415.1 MB, free: 7.043 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003254/0.3219, allocations: 1.915 MB / 417 MB, free: 5.559 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005318/0.3224, allocations: 0.9578 MB / 418 MB, free: 4.574 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002635/0.3227, allocations: 59.41 kB / 418 MB, free: 4.516 MB / 334.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3227, allocations: 0 / 418 MB, free: 4.516 MB / 334.1 MB Notification: Performance of Templates: time 0.01826/0.341, allocations: 13.65 MB / 431.7 MB, free: 6.848 MB / 350.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/DifferenceAmplifier/DifferenceAmplifier.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.DifferenceAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches