Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.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.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") translateModel(Modelica.Electrical.Analog.Examples.InvertingAmp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|vIn.signalSource.y",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001367/0.001367, allocations: 109.4 kB / 18.4 MB, free: 4.68 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.001615/0.001615, allocations: 185.2 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.327/1.327, 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.001298/0.001298, allocations: 47.94 kB / 329.2 MB, free: 3.277 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07975/0.08106, allocations: 46.6 MB / 375.8 MB, free: 4.566 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.InvertingAmp): time 0.004127/0.08524, allocations: 2.754 MB / 378.6 MB, free: 1.797 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00144/0.08671, allocations: 0.6823 MB / 379.3 MB, free: 1.105 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003025/0.08703, allocations: 7.938 kB / 379.3 MB, free: 1.098 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002214/0.0873, allocations: 47.56 kB / 379.3 MB, free: 1.051 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003141/0.08763, allocations: 87.2 kB / 379.4 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003245/0.08796, allocations: 91.81 kB / 379.5 MB, free: 0.875 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005049/0.08848, allocations: 382.3 kB / 379.9 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002419/0.08873, allocations: 122.9 kB / 380 MB, free: 388 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002344/0.08898, allocations: 143.5 kB / 380.1 MB, free: 244 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002618/0.08925, allocations: 163.3 kB / 380.3 MB, free: 80 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.685e-05/0.08932, allocations: 39.98 kB / 380.3 MB, free: 40 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.69e-05/0.0894, allocations: 39.94 kB / 380.4 MB, free: 0 / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.1866/0.276, allocations: 62.55 kB / 380.4 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002757/0.2763, allocations: 165 kB / 380.6 MB, free: 10.16 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005392/0.2769, allocations: 374.6 kB / 381 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.2769, allocations: 4.281 kB / 381 MB, free: 10.12 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.2769, allocations: 0 / 381 MB, free: 10.12 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.674e-06/0.2769, allocations: 0 / 381 MB, free: 10.12 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.001135/0.278, allocations: 0.6504 MB / 381.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2781, allocations: 9.625 kB / 381.6 MB, free: 9.641 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.544e-05/0.2782, allocations: 33.72 kB / 381.6 MB, free: 9.625 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003522/0.2785, allocations: 269.3 kB / 381.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.2786, allocations: 21.8 kB / 381.9 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.795e-05/0.2786, allocations: 26.09 kB / 382 MB, free: 9.402 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006238/0.2793, allocations: 297.7 kB / 382.2 MB, free: 9.352 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.2793, allocations: 3.938 kB / 382.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.108e-05/0.2793, allocations: 15.95 kB / 382.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.495e-05/0.2793, allocations: 5.5 kB / 382.3 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007475/0.2801, allocations: 250 kB / 382.5 MB, free: 9.348 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001603/0.2817, allocations: 1.088 MB / 383.6 MB, free: 8.75 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007557/0.2825, allocations: 215.7 kB / 383.8 MB, free: 8.719 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003145/0.2828, allocations: 90.92 kB / 383.9 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.916e-05/0.2828, allocations: 1.938 kB / 383.9 MB, free: 8.711 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004184/0.2833, allocations: 166.8 kB / 384.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.243e-06/0.2833, allocations: 0 / 384.1 MB, free: 8.637 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.001913/0.2852, allocations: 0.5117 MB / 384.6 MB, free: 8.473 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2852, allocations: 109.6 kB / 384.7 MB, free: 8.348 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002717/0.2855, allocations: 282.1 kB / 385 MB, free: 8.238 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.2855, allocations: 29.7 kB / 385 MB, free: 8.207 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.143e-05/0.2856, allocations: 202.1 kB / 385.2 MB, free: 8.07 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.03e-05/0.2857, allocations: 36.42 kB / 385.2 MB, free: 8.051 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.443e-05/0.2858, allocations: 56.53 kB / 385.3 MB, free: 8.031 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 6.051e-05/0.2858, allocations: 338.8 kB / 385.6 MB, free: 7.715 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003098/0.2861, allocations: 91.59 kB / 385.7 MB, free: 7.715 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003322/0.2865, allocations: 195.6 kB / 385.9 MB, free: 7.586 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005954/0.2871, allocations: 307.4 kB / 386.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.426e-06/0.2871, allocations: 1.344 kB / 386.2 MB, free: 7.438 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.001099/0.2882, allocations: 432.3 kB / 386.6 MB, free: 7.34 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.363e-05/0.2883, allocations: 34.25 kB / 386.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.696e-06/0.2883, allocations: 2.641 kB / 386.7 MB, free: 7.309 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000341/0.2886, allocations: 81.88 kB / 386.7 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002042/0.2888, allocations: 49.02 kB / 386.8 MB, free: 7.293 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001928/0.2908, allocations: 1.719 MB / 388.5 MB, free: 5.852 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003319/0.2911, allocations: 52.53 kB / 388.6 MB, free: 5.832 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.773e-05/0.2911, allocations: 14.8 kB / 388.6 MB, free: 5.828 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (23): * Single equations (assignments): 21 * 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 0.0001162/0.2913, allocations: 149.9 kB / 388.7 MB, free: 5.691 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.555e-05/0.2913, allocations: 27.78 kB / 388.7 MB, free: 5.676 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.5e-05/0.2914, allocations: 23 kB / 388.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.2914, allocations: 2.188 kB / 388.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.454e-06/0.2914, allocations: 0 / 388.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.118e-06/0.2914, allocations: 0.9844 kB / 388.8 MB, free: 5.656 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002329/0.2916, allocations: 304.2 kB / 389.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2916, allocations: 2.172 kB / 389.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001155/0.2918, allocations: 17.84 kB / 389.1 MB, free: 5.41 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002311/0.292, allocations: 74.84 kB / 389.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.292, allocations: 1.75 kB / 389.2 MB, free: 5.379 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001741/0.2938, allocations: 1.71 MB / 390.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.163e-06/0.2938, allocations: 1.469 kB / 390.9 MB, free: 3.867 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009392/0.2947, allocations: 311 kB / 391.2 MB, free: 3.73 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.906e-05/0.2948, allocations: 116.4 kB / 391.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.887e-05/0.2949, allocations: 6.812 kB / 391.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002397/0.2951, allocations: 33.11 kB / 391.3 MB, free: 3.605 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001002/0.2952, allocations: 21.31 kB / 391.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.374e-05/0.2953, allocations: 2.812 kB / 391.3 MB, free: 3.602 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.000206/0.2955, allocations: 208.1 kB / 391.5 MB, free: 3.48 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2955, allocations: 1 kB / 391.6 MB, free: 3.48 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003684/0.2959, allocations: 79.44 kB / 391.6 MB, free: 3.465 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 (7): * Single equations (assignments): 4 * 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.000121/0.296, allocations: 106.1 kB / 391.7 MB, free: 3.367 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008889/0.2969, allocations: 412.9 kB / 392.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2969, allocations: 1.062 kB / 392.1 MB, free: 3.133 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000398/0.2973, allocations: 230.9 kB / 392.4 MB, free: 2.984 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002946/0.2976, allocations: 40.38 kB / 392.4 MB, free: 2.969 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009136/0.2985, allocations: 484.8 kB / 392.9 MB, free: 2.664 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.2987, allocations: 0.7553 MB / 393.6 MB, free: 1.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.429e-05/0.2988, allocations: 24.48 kB / 393.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of SimCode: time 2.31e-07/0.2988, allocations: 0 / 393.7 MB, free: 1.949 MB / 318.1 MB Notification: Performance of Templates: time 0.007381/0.3062, allocations: 4.464 MB / 398.1 MB, free: 1.281 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.sim & ./Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/InvertingAmp/InvertingAmp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.InvertingAmp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches