Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.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.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|opAmp.out.v|opAmp.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001365/0.001365, allocations: 107.9 kB / 18.4 MB, free: 4.684 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.001395/0.001395, allocations: 190.5 kB / 19.33 MB, free: 3.758 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.405/1.405, 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.001359/0.001359, allocations: 59.92 kB / 329.2 MB, free: 3.262 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09296/0.09432, allocations: 46.61 MB / 375.9 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp): time 0.004427/0.0988, allocations: 2.696 MB / 378.5 MB, free: 1.832 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001473/0.1003, allocations: 0.7251 MB / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002753/0.1006, allocations: 4 kB / 379.3 MB, free: 1.094 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002063/0.1009, allocations: 47.58 kB / 379.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002713/0.1012, allocations: 91.19 kB / 379.4 MB, free: 0.957 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003493/0.1015, allocations: 91.88 kB / 379.5 MB, free: 0.8672 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005373/0.1021, allocations: 354.5 kB / 379.8 MB, free: 0.5195 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000224/0.1023, allocations: 88.69 kB / 379.9 MB, free: 444 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002494/0.1026, allocations: 131.4 kB / 380.1 MB, free: 312 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000263/0.1028, allocations: 155.3 kB / 380.2 MB, free: 156 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.195e-05/0.1029, allocations: 28 kB / 380.2 MB, free: 128 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.598e-05/0.103, allocations: 28 kB / 380.3 MB, free: 100 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.172e-05/0.1031, allocations: 63.81 kB / 380.3 MB, free: 36 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1787/0.2818, allocations: 140.1 kB / 380.5 MB, free: 10.11 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004459/0.2823, allocations: 327.6 kB / 380.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.1e-06/0.2823, allocations: 0 / 380.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2823, allocations: 0 / 380.8 MB, free: 10.11 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.2823, allocations: 0 / 380.8 MB, free: 10.11 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: 49 * Number of variables: 49 Notification: Performance of Generate backend data structure: time 0.001135/0.2835, allocations: 0.6356 MB / 381.4 MB, free: 9.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.993e-05/0.2835, allocations: 9.906 kB / 381.4 MB, free: 9.645 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.841e-05/0.2836, allocations: 33.5 kB / 381.5 MB, free: 9.629 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003641/0.284, allocations: 277.1 kB / 381.7 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.014e-05/0.284, allocations: 14.25 kB / 381.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.508e-05/0.2841, allocations: 24 kB / 381.8 MB, free: 9.406 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006107/0.2847, allocations: 247.2 kB / 382 MB, free: 9.367 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.152e-05/0.2847, allocations: 4.453 kB / 382 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.635e-05/0.2847, allocations: 10.75 kB / 382 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2847, allocations: 4.125 kB / 382 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007236/0.2855, allocations: 253.6 kB / 382.3 MB, free: 9.363 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001338/0.2868, allocations: 0.8576 MB / 383.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007779/0.2876, allocations: 223.9 kB / 383.4 MB, free: 8.938 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003146/0.2879, allocations: 99.92 kB / 383.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.266e-05/0.288, allocations: 2.469 kB / 383.5 MB, free: 8.93 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004563/0.2884, allocations: 177.5 kB / 383.6 MB, free: 8.855 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.423e-06/0.2884, allocations: 4.5 kB / 383.6 MB, free: 8.852 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001926/0.2904, allocations: 0.5874 MB / 384.2 MB, free: 8.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.881e-05/0.2904, allocations: 108 kB / 384.3 MB, free: 8.566 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002351/0.2907, allocations: 254.8 kB / 384.6 MB, free: 8.465 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.95e-05/0.2907, allocations: 28.42 kB / 384.6 MB, free: 8.434 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.591e-05/0.2908, allocations: 180.9 kB / 384.8 MB, free: 8.312 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.908e-05/0.2908, allocations: 42.17 kB / 384.8 MB, free: 8.285 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.241e-05/0.2909, allocations: 47.88 kB / 384.9 MB, free: 8.266 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.417e-05/0.291, allocations: 337.3 kB / 385.2 MB, free: 7.949 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002999/0.2913, allocations: 95.5 kB / 385.3 MB, free: 7.941 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000307/0.2916, allocations: 160.4 kB / 385.4 MB, free: 7.863 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005486/0.2921, allocations: 257.2 kB / 385.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.156e-06/0.2921, allocations: 1.125 kB / 385.7 MB, free: 7.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0009948/0.2932, allocations: 414.8 kB / 386.1 MB, free: 7.68 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.2932, allocations: 34.02 kB / 386.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.2932, allocations: 1.781 kB / 386.1 MB, free: 7.648 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004582/0.2937, allocations: 110.1 kB / 386.2 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001799/0.2939, allocations: 41.52 kB / 386.3 MB, free: 7.637 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00162/0.2955, allocations: 1.888 MB / 388.2 MB, free: 6.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002813/0.2958, allocations: 42.5 kB / 388.2 MB, free: 6.113 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.051e-05/0.2958, allocations: 12.77 kB / 388.2 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0002952/0.2961, allocations: 182.3 kB / 388.4 MB, free: 6.027 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0002631/0.2964, allocations: 143.6 kB / 388.5 MB, free: 5.934 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0004565/0.2968, allocations: 235.8 kB / 388.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.333e-06/0.2969, allocations: 0 / 388.8 MB, free: 5.793 MB / 318.1 MB Notification: Performance of matching and sorting (n=24) (initialization_lambda0): time 0.0007013/0.2976, allocations: 333.9 kB / 389.1 MB, free: 5.645 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.144e-05/0.2976, allocations: 40.97 kB / 389.1 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.2976, allocations: 3.75 kB / 389.1 MB, free: 5.605 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001026/0.2977, allocations: 41.77 kB / 389.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000174/0.2979, allocations: 37.5 kB / 389.2 MB, free: 5.59 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009074/0.2988, allocations: 1.722 MB / 390.9 MB, free: 3.949 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002933/0.2991, allocations: 44.69 kB / 391 MB, free: 3.938 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.568e-05/0.2991, allocations: 5.156 kB / 391 MB, free: 3.938 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 (vIn.signalSource.count,$PRE.vIn.signalSource.count,vIn.signalSource.T_start,$PRE.vIn.signalSource.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 16 * Array equations: 0 * Algorithm blocks: 1 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of prepare postOptimizeDAE: time 9.69e-05/0.2992, allocations: 201.2 kB / 391.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.71e-05/0.2993, allocations: 18.44 kB / 391.2 MB, free: 3.734 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.535e-05/0.2993, allocations: 31.53 kB / 391.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.2993, allocations: 2.562 kB / 391.2 MB, free: 3.715 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.2993, allocations: 7.938 kB / 391.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.2994, allocations: 2.094 kB / 391.3 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002412/0.2996, allocations: 300.7 kB / 391.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.2996, allocations: 0 / 391.5 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001312/0.2997, allocations: 21.44 kB / 391.6 MB, free: 3.465 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001992/0.3, allocations: 66.16 kB / 391.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.3, allocations: 1.984 kB / 391.6 MB, free: 3.445 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00141/0.3014, allocations: 1.719 MB / 393.4 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.3014, allocations: 4.062 kB / 393.4 MB, free: 1.926 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007969/0.3022, allocations: 313.3 kB / 393.7 MB, free: 1.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.572e-05/0.3023, allocations: 101.5 kB / 393.8 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.3023, allocations: 5.859 kB / 393.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002181/0.3025, allocations: 26.38 kB / 393.8 MB, free: 1.684 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.27e-05/0.3026, allocations: 20.66 kB / 393.8 MB, free: 1.68 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.334e-05/0.3026, allocations: 10.89 kB / 393.8 MB, free: 1.672 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001536/0.3028, allocations: 193 kB / 394 MB, free: 1.551 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3028, allocations: 0 / 394 MB, free: 1.551 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0005052/0.3033, allocations: 125.2 kB / 394.1 MB, free: 1.527 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,vIn.signalSource.T_start,vIn.signalSource.count) * Number of discrete states: 1 (vIn.signalSource.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,5)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001112/0.3034, allocations: 108.9 kB / 394.2 MB, free: 1.43 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001181/0.3046, allocations: 0.6799 MB / 394.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3046, allocations: 0 / 394.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003979/0.305, allocations: 242.5 kB / 395.2 MB, free: 0.8359 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003077/0.3053, allocations: 42.08 kB / 395.2 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007979/0.3062, allocations: 469.8 kB / 395.7 MB, free: 0.5273 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002106/0.3064, allocations: 0.7561 MB / 396.4 MB, free: 15.82 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.327e-05/0.3064, allocations: 22.59 kB / 396.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.3065, allocations: 0 / 396.4 MB, free: 15.81 MB / 334.1 MB Notification: Performance of Templates: time 0.006334/0.3128, allocations: 4.198 MB / 400.6 MB, free: 15.14 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/OpAmps/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches