Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|opAmp.v_out|rootMeanSquare.mean.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 108.1 kB / 17.06 MB, free: 6.023 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.001325/0.001325, allocations: 192 kB / 17.99 MB, free: 5.109 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.598/1.598, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001116/0.001116, allocations: 47.94 kB / 351.3 MB, free: 3.227 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3456/0.3467, allocations: 49.44 MB / 400.8 MB, free: 8.758 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier): time 0.007573/0.3543, allocations: 4.451 MB / 405.2 MB, free: 4.414 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.3578, allocations: 1.199 MB / 406.4 MB, free: 3.211 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009708/0.3588, allocations: 12 kB / 406.4 MB, free: 3.199 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007712/0.3597, allocations: 142.8 kB / 406.6 MB, free: 3.059 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001057/0.3608, allocations: 210.2 kB / 406.8 MB, free: 2.852 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007976/0.3616, allocations: 195.6 kB / 407 MB, free: 2.66 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001609/0.3632, allocations: 0.7592 MB / 407.7 MB, free: 1.898 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000667/0.3639, allocations: 270.5 kB / 408 MB, free: 1.621 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007546/0.3647, allocations: 286.9 kB / 408.3 MB, free: 1.34 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001038/0.3657, allocations: 326.5 kB / 408.6 MB, free: 1.02 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001642/0.3659, allocations: 71.94 kB / 408.7 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002141/0.3661, allocations: 64 kB / 408.7 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.3663, allocations: 143.5 kB / 408.9 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004738/0.3668, allocations: 338.3 kB / 409.2 MB, free: 424 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001052/0.3679, allocations: 0.7445 MB / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.094e-06/0.3679, allocations: 0 / 409.9 MB, free: 15.67 MB / 334.1 MB Notification: Performance of FrontEnd: time 5.541e-06/0.3679, allocations: 7.938 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.421e-05/0.3679, allocations: 7.875 kB / 409.9 MB, free: 15.66 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 137 * Number of variables: 137 Notification: Performance of Generate backend data structure: time 0.002311/0.3702, allocations: 0.947 MB / 410.9 MB, free: 14.66 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.525e-05/0.3703, allocations: 11.89 kB / 410.9 MB, free: 14.64 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002123/0.3706, allocations: 76.09 kB / 411 MB, free: 14.57 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000719/0.3713, allocations: 409.9 kB / 411.4 MB, free: 14.13 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.192e-05/0.3713, allocations: 41.69 kB / 411.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001105/0.3715, allocations: 56.38 kB / 411.5 MB, free: 14.04 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001171/0.3726, allocations: 0.5533 MB / 412 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.051e-05/0.3727, allocations: 4 kB / 412 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.28e-05/0.3728, allocations: 20 kB / 412.1 MB, free: 13.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.3728, allocations: 12 kB / 412.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009322/0.3737, allocations: 421 kB / 412.5 MB, free: 13.02 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003299/0.377, allocations: 1.812 MB / 414.3 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008393/0.3779, allocations: 0.5264 MB / 414.8 MB, free: 10.55 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001088/0.379, allocations: 457 kB / 415.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.379, allocations: 4.328 kB / 415.3 MB, free: 10.1 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006122/0.3797, allocations: 306.1 kB / 415.6 MB, free: 9.762 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 3.427e-06/0.3797, allocations: 4 kB / 415.6 MB, free: 9.758 MB / 334.1 MB Notification: Performance of matching and sorting (n=41): time 0.004338/0.384, allocations: 1.302 MB / 416.9 MB, free: 8.426 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001875/0.3842, allocations: 239.3 kB / 417.1 MB, free: 8.137 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006121/0.3849, allocations: 425.9 kB / 417.5 MB, free: 7.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.772e-05/0.3849, allocations: 33.7 kB / 417.6 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000326/0.3853, allocations: 308.1 kB / 417.9 MB, free: 7.367 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001658/0.3854, allocations: 137.9 kB / 418 MB, free: 7.23 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.3856, allocations: 98.16 kB / 418.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002494/0.3859, allocations: 354.8 kB / 418.4 MB, free: 6.773 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003701/0.3863, allocations: 161 kB / 418.6 MB, free: 6.617 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005614/0.3868, allocations: 313.7 kB / 418.9 MB, free: 6.238 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008765/0.3877, allocations: 455.2 kB / 419.3 MB, free: 5.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.624e-06/0.3878, allocations: 3.938 kB / 419.3 MB, free: 5.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001979/0.3897, allocations: 0.779 MB / 420.1 MB, free: 4.953 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.361e-05/0.3898, allocations: 8 kB / 420.1 MB, free: 4.945 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.395e-05/0.3898, allocations: 4 kB / 420.1 MB, free: 4.941 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008329/0.3906, allocations: 218.9 kB / 420.3 MB, free: 4.727 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003203/0.391, allocations: 75.84 kB / 420.4 MB, free: 4.652 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005622/0.3966, allocations: 3.145 MB / 423.6 MB, free: 1.375 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007193/0.3974, allocations: 87.41 kB / 423.7 MB, free: 1.289 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.3974, allocations: 20 kB / 423.7 MB, free: 1.27 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 41 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,19)} Notification: Performance of prepare postOptimizeDAE: time 0.0004277/0.3979, allocations: 185.6 kB / 423.9 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.35e-05/0.398, allocations: 47.44 kB / 423.9 MB, free: 1.031 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001496/0.3981, allocations: 56.86 kB / 424 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.951e-06/0.3981, allocations: 4 kB / 424 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.061e-06/0.3981, allocations: 0 / 424 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.632e-06/0.3982, allocations: 0 / 424 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002433/0.4006, allocations: 1.276 MB / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.4006, allocations: 0 / 425.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000182/0.4008, allocations: 35.98 kB / 425.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006366/0.4015, allocations: 216.6 kB / 425.5 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.4015, allocations: 8 kB / 425.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004767/0.4063, allocations: 3.057 MB / 428.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4063, allocations: 4 kB / 428.6 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002241/0.4086, allocations: 0.9302 MB / 429.5 MB, free: 11.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001946/0.4088, allocations: 124.5 kB / 429.6 MB, free: 11.09 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001087/0.4089, allocations: 16.06 kB / 429.6 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00042/0.4093, allocations: 39.95 kB / 429.7 MB, free: 11.03 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001515/0.4095, allocations: 39.98 kB / 429.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.079e-05/0.4095, allocations: 8 kB / 429.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005302/0.4101, allocations: 307.1 kB / 430 MB, free: 10.69 MB / 350.1 MB Notification: Performance of sort global known variables: time 4.71e-07/0.4101, allocations: 0 / 430 MB, free: 10.69 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009454/0.411, allocations: 191.5 kB / 430.2 MB, free: 10.5 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (rootMeanSquare.mean.x) * Number of discrete variables: 2 ($whenCondition1,rootMeanSquare.mean.y_last) * Number of discrete states: 1 (rootMeanSquare.mean.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(3,18)} Notification: Performance of Backend phase and start with SimCode phase: time 0.000234/0.4113, allocations: 115.8 kB / 430.3 MB, free: 10.38 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001851/0.4131, allocations: 0.6762 MB / 431 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.39e-06/0.4132, allocations: 0 / 431 MB, free: 9.688 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008199/0.414, allocations: 425.1 kB / 431.4 MB, free: 9.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000597/0.4146, allocations: 73.47 kB / 431.5 MB, free: 9.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00243/0.4171, allocations: 0.9112 MB / 432.4 MB, free: 8.25 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007468/0.4178, allocations: 0.859 MB / 433.2 MB, free: 7.359 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0002861/0.4181, allocations: 52.45 kB / 433.3 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001204/0.4183, allocations: 31.44 kB / 433.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of SimCode: time 1.773e-06/0.4183, allocations: 0 / 433.3 MB, free: 7.273 MB / 350.1 MB Notification: Performance of Templates: time 0.01703/0.4353, allocations: 7.634 MB / 441 MB, free: 15.71 MB / 366.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.sim & ./Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Analog/Examples/OpAmps/DifferentialAmplifier/DifferentialAmplifier.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.DifferentialAmplifier.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches