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.001637/0.001637, allocations: 123 kB / 17.79 MB, free: 5.266 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.001865/0.001865, allocations: 189.2 kB / 20.73 MB, free: 2.328 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.458/1.458, allocations: 225.6 MB / 249.1 MB, free: 3.609 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.001545/0.001545, allocations: 51.92 kB / 365.6 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1083, allocations: 52.14 MB / 417.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00911/0.1174, allocations: 7.531 MB / 425.3 MB, free: 5.062 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01384/0.1312, allocations: 10.73 MB / 436 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001427/0.1327, allocations: 122.6 kB / 436.2 MB, free: 10.16 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002055/0.1347, allocations: 0.7062 MB / 436.9 MB, free: 9.445 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004138/0.1389, allocations: 1.208 MB / 438.1 MB, free: 8.23 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001936/0.1408, allocations: 0.6701 MB / 438.7 MB, free: 7.559 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004168/0.145, allocations: 2.537 MB / 441.3 MB, free: 5.012 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003999/0.1454, allocations: 191.9 kB / 441.5 MB, free: 4.805 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007466/0.1461, allocations: 0.5054 MB / 442 MB, free: 4.297 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006257/0.1467, allocations: 0.5394 MB / 442.5 MB, free: 3.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 9.546e-05/0.1468, allocations: 56 kB / 442.6 MB, free: 3.699 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001772/0.1486, allocations: 0.7688 MB / 443.3 MB, free: 2.93 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001726/0.1488, allocations: 186.8 kB / 443.5 MB, free: 2.746 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006661/0.1494, allocations: 0.6793 MB / 444.2 MB, free: 2.062 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002566/0.152, allocations: 1.948 MB / 446.1 MB, free: 108 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.152, allocations: 0 / 446.1 MB, free: 108 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.152, allocations: 0 / 446.1 MB, free: 108 kB / 366.1 MB Notification: Performance of Transformations before backend: time 2.029e-05/0.152, allocations: 4 kB / 446.1 MB, free: 104 kB / 366.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.1998/0.3519, allocations: 2.043 MB / 448.2 MB, free: 30.96 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.195e-05/0.3519, allocations: 10.31 kB / 448.2 MB, free: 30.96 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.685e-05/0.352, allocations: 93.52 kB / 448.3 MB, free: 30.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001951/0.3522, allocations: 202.8 kB / 448.5 MB, free: 30.82 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.3537, allocations: 1.349 MB / 449.8 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.768e-05/0.3537, allocations: 38.25 kB / 449.9 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.744e-05/0.3538, allocations: 48.2 kB / 449.9 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008484/0.3546, allocations: 0.5135 MB / 450.4 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.633e-05/0.3547, allocations: 5.516 kB / 450.4 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.81e-05/0.3547, allocations: 15.72 kB / 450.5 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.901e-05/0.3547, allocations: 15.97 kB / 450.5 MB, free: 30.3 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008723/0.3556, allocations: 473.8 kB / 450.9 MB, free: 30.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002905/0.3585, allocations: 2.096 MB / 453 MB, free: 29.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009046/0.3594, allocations: 0.6488 MB / 453.7 MB, free: 29.3 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007337/0.3601, allocations: 469.4 kB / 454.1 MB, free: 29.1 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007148/0.3673, allocations: 6.524 MB / 460.7 MB, free: 23.34 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005498/0.3678, allocations: 293.8 kB / 460.9 MB, free: 23.22 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.985e-06/0.3678, allocations: 2.938 kB / 461 MB, free: 23.22 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003505/0.3714, allocations: 1.975 MB / 462.9 MB, free: 22.16 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.672e-05/0.3714, allocations: 63.17 kB / 463 MB, free: 22.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001753/0.3731, allocations: 1.3 MB / 464.3 MB, free: 21.61 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.138e-05/0.3732, allocations: 39.38 kB / 464.3 MB, free: 21.57 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004799/0.3737, allocations: 0.7214 MB / 465 MB, free: 20.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001294/0.3738, allocations: 208.8 kB / 465.3 MB, free: 20.83 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001782/0.374, allocations: 120.1 kB / 465.4 MB, free: 20.77 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.519e-05/0.374, allocations: 336.5 kB / 465.7 MB, free: 20.45 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004221/0.3745, allocations: 201.3 kB / 465.9 MB, free: 20.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004814/0.3749, allocations: 360.7 kB / 466.2 MB, free: 20.12 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009864/0.3759, allocations: 0.599 MB / 466.8 MB, free: 19.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.3759, allocations: 2.688 kB / 466.8 MB, free: 19.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001565/0.3775, allocations: 0.9148 MB / 467.8 MB, free: 19.37 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.26e-05/0.3775, allocations: 9.703 kB / 467.8 MB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.749e-05/0.3776, allocations: 61.11 kB / 467.8 MB, free: 19.37 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004285/0.378, allocations: 155 kB / 468 MB, free: 19.32 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004542/0.3785, allocations: 117.9 kB / 468.1 MB, free: 19.31 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002562/0.381, allocations: 2.526 MB / 470.6 MB, free: 17.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005394/0.3816, allocations: 25.14 kB / 470.6 MB, free: 17.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.929e-05/0.3816, allocations: 31.5 kB / 470.7 MB, free: 17.27 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.0004191/0.3821, allocations: 272.2 kB / 470.9 MB, free: 17.06 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002349/0.3823, allocations: 188 kB / 471.1 MB, free: 16.96 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001875/0.3842, allocations: 0.8792 MB / 472 MB, free: 16.58 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.3842, allocations: 13.05 kB / 472 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.768e-06/0.3842, allocations: 3.344 kB / 472 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.205e-06/0.3842, allocations: 6.75 kB / 472 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001284/0.3855, allocations: 0.8614 MB / 472.9 MB, free: 16.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.774e-05/0.3856, allocations: 54.53 kB / 472.9 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003133/0.3859, allocations: 62.98 kB / 473 MB, free: 16.11 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003799/0.3863, allocations: 152 kB / 473.2 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.162e-05/0.3863, allocations: 23.5 kB / 473.2 MB, free: 16.06 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002382/0.3887, allocations: 2.505 MB / 475.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3887, allocations: 0.9688 kB / 475.7 MB, free: 14.04 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001968/0.3907, allocations: 1.073 MB / 476.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003695/0.391, allocations: 254.1 kB / 477 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002044/0.3912, allocations: 16.44 kB / 477 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004134/0.3916, allocations: 14.97 kB / 477 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001453/0.3918, allocations: 47.66 kB / 477.1 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.98e-05/0.3918, allocations: 22.31 kB / 477.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001328/0.3932, allocations: 0.8665 MB / 478 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3932, allocations: 0.9375 kB / 478 MB, free: 12.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001184/0.3944, allocations: 374.1 kB / 478.3 MB, free: 12.89 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.002832/0.3972, allocations: 1.97 MB / 480.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001625/0.3988, allocations: 0.8067 MB / 481.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.885e-06/0.3988, allocations: 0.875 kB / 481.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009155/0.3997, allocations: 0.5503 MB / 481.7 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009716/0.4007, allocations: 211.7 kB / 481.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01161/0.4123, allocations: 9.314 MB / 491.2 MB, free: 3.539 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004619/0.4128, allocations: 1.17 MB / 492.4 MB, free: 2.336 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004145/0.4132, allocations: 191.4 kB / 492.5 MB, free: 2.148 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004267/0.4136, allocations: 0.5657 MB / 493.1 MB, free: 1.582 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.4136, allocations: 4 kB / 493.1 MB, free: 1.578 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0973/0.5109, allocations: 29.14 MB / 0.51 GB, free: 4.668 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.71, allocations: 23.11 kB / 0.51 GB, free: 4.648 MB / 398.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/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/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.458194489125162]