Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00187/0.00187, allocations: 115.4 kB / 17.74 MB, free: 5.355 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002098/0.002098, allocations: 182.9 kB / 20.68 MB, free: 2.426 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.43/1.43, allocations: 222.9 MB / 246.4 MB, free: 4.203 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001501/0.001501, allocations: 51.92 kB / 357.5 MB, free: 8.836 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09601/0.09752, allocations: 49.44 MB / 406.9 MB, free: 7.355 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008488/0.1061, allocations: 7.501 MB / 414.4 MB, free: 15.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01344/0.1195, allocations: 10.7 MB / 425.1 MB, free: 5.078 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00101/0.1206, allocations: 79.31 kB / 425.2 MB, free: 5 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001897/0.1225, allocations: 0.7103 MB / 425.9 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003695/0.1262, allocations: 1.184 MB / 427.1 MB, free: 3.09 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001653/0.1279, allocations: 0.6739 MB / 427.8 MB, free: 2.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.1883/0.3163, allocations: 2.532 MB / 430.3 MB, free: 6.328 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004752/0.3168, allocations: 281.1 kB / 430.6 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006227/0.3174, allocations: 493.5 kB / 431.1 MB, free: 6.273 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004481/0.3179, allocations: 0.5386 MB / 431.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000112/0.318, allocations: 57.22 kB / 431.6 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001555/0.3195, allocations: 0.7648 MB / 432.4 MB, free: 6.102 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.3197, allocations: 186.3 kB / 432.6 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004408/0.3201, allocations: 0.6778 MB / 433.3 MB, free: 5.766 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002376/0.3225, allocations: 1.952 MB / 435.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.3225, allocations: 0 / 435.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.255e-06/0.3225, allocations: 0.5625 kB / 435.2 MB, free: 5.391 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.638e-05/0.3226, allocations: 3.938 kB / 435.2 MB, free: 5.387 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.002916/0.3255, allocations: 2.045 MB / 437.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3255, allocations: 9.969 kB / 437.3 MB, free: 4.148 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.814e-05/0.3256, allocations: 90.67 kB / 437.4 MB, free: 4.109 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000266/0.3259, allocations: 208.5 kB / 437.6 MB, free: 4.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002012/0.3279, allocations: 1.353 MB / 438.9 MB, free: 3.535 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.518e-05/0.328, allocations: 34.77 kB / 439 MB, free: 3.531 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.443e-05/0.3281, allocations: 54.25 kB / 439 MB, free: 3.523 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009784/0.3291, allocations: 0.5073 MB / 439.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.592e-05/0.3291, allocations: 0 / 439.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.065e-05/0.3291, allocations: 21.53 kB / 439.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.382e-05/0.3292, allocations: 17.59 kB / 439.6 MB, free: 3.477 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000952/0.3301, allocations: 476.5 kB / 440 MB, free: 3.465 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002798/0.3329, allocations: 2.094 MB / 442.1 MB, free: 2.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009976/0.3339, allocations: 0.7077 MB / 442.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006991/0.3347, allocations: 0.5145 MB / 443.3 MB, free: 2.664 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007731/0.3424, allocations: 6.518 MB / 449.9 MB, free: 13.4 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005735/0.343, allocations: 293.3 kB / 450.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.564e-06/0.343, allocations: 0 / 450.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003692/0.3467, allocations: 1.992 MB / 452.1 MB, free: 12.73 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.068e-05/0.3468, allocations: 59.02 kB / 452.2 MB, free: 12.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001542/0.3483, allocations: 1.3 MB / 453.5 MB, free: 12.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.819e-05/0.3484, allocations: 37.17 kB / 453.5 MB, free: 12.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00052/0.3489, allocations: 0.7221 MB / 454.3 MB, free: 12.28 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001584/0.3491, allocations: 211.3 kB / 454.5 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001765/0.3493, allocations: 125.7 kB / 454.6 MB, free: 12.12 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001586/0.3494, allocations: 331.9 kB / 454.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003925/0.3498, allocations: 196.9 kB / 455.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005214/0.3504, allocations: 366.4 kB / 455.5 MB, free: 11.63 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009364/0.3513, allocations: 0.5997 MB / 456.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.3513, allocations: 1.344 kB / 456.1 MB, free: 11.42 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001525/0.3528, allocations: 0.9221 MB / 457 MB, free: 11.26 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3529, allocations: 10.88 kB / 457 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.836e-05/0.353, allocations: 55.95 kB / 457 MB, free: 11.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003981/0.3534, allocations: 163.7 kB / 457.2 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004323/0.3538, allocations: 112.8 kB / 457.3 MB, free: 11.24 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003072/0.3569, allocations: 2.514 MB / 459.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006407/0.3576, allocations: 32.28 kB / 459.9 MB, free: 9.254 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.46e-05/0.3576, allocations: 30.69 kB / 459.9 MB, free: 9.25 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 (v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (57): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004792/0.3581, allocations: 275.7 kB / 460.2 MB, free: 9.043 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002017/0.3583, allocations: 191.2 kB / 460.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/0.3601, allocations: 0.8909 MB / 461.2 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.576e-06/0.3601, allocations: 9.625 kB / 461.2 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.099e-06/0.3601, allocations: 3.469 kB / 461.3 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3602, allocations: 3.891 kB / 461.3 MB, free: 8.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001105/0.3613, allocations: 0.8634 MB / 462.1 MB, free: 8.117 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.664e-05/0.3613, allocations: 55.2 kB / 462.2 MB, free: 8.113 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002988/0.3616, allocations: 69.31 kB / 462.2 MB, free: 8.105 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003846/0.362, allocations: 150 kB / 462.4 MB, free: 8.062 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.487e-05/0.3621, allocations: 20.73 kB / 462.4 MB, free: 8.055 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002785/0.3649, allocations: 2.502 MB / 464.9 MB, free: 6.055 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.3649, allocations: 3.938 kB / 464.9 MB, free: 6.051 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001948/0.3669, allocations: 1.076 MB / 466 MB, free: 5.555 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004601/0.3673, allocations: 252 kB / 466.2 MB, free: 5.348 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001435/0.3675, allocations: 16.31 kB / 466.3 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.3678, allocations: 15.17 kB / 466.3 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001212/0.368, allocations: 48.34 kB / 466.3 MB, free: 5.328 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.951e-05/0.368, allocations: 22.12 kB / 466.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001119/0.3691, allocations: 0.8604 MB / 467.2 MB, free: 5 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3692, allocations: 0 / 467.2 MB, free: 5 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001124/0.3703, allocations: 378.9 kB / 467.6 MB, free: 4.934 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (T1.vbe,T1.vbx,T2.vbe,T2.vbx) * Number of discrete variables: 4 ($whenCondition1,v.T0,v.counter,v.counter2) * Number of discrete states: 2 (v.counter,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 3 * 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 {(4,14,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00292/0.3732, allocations: 1.978 MB / 469.5 MB, free: 3.844 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3749, allocations: 0.8462 MB / 470.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.3749, allocations: 0 / 470.4 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009524/0.3759, allocations: 0.5852 MB / 471 MB, free: 3.074 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001011/0.3769, allocations: 203.6 kB / 471.2 MB, free: 2.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01393/0.3908, allocations: 9.333 MB / 480.5 MB, free: 9.992 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008238/0.3917, allocations: 1.166 MB / 481.7 MB, free: 8.797 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005036/0.3922, allocations: 183.2 kB / 481.9 MB, free: 8.613 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006558/0.3929, allocations: 0.5735 MB / 482.4 MB, free: 8.039 MB / 382.1 MB Notification: Performance of SimCode: time 6.62e-07/0.3929, allocations: 3.938 kB / 482.4 MB, free: 8.035 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07009/0.463, allocations: 28.99 MB / 0.4994 GB, free: 11.3 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.5, allocations: 8.547 kB / 0.4994 GB, free: 11.29 MB / 414.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4.998e-06 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.13406713306904]