Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001322/0.001322, allocations: 116.9 kB / 18.45 MB, free: 4.609 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001378/0.001378, allocations: 216.3 kB / 21.41 MB, free: 1.648 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.419/1.419, allocations: 207.6 MB / 231.8 MB, free: 4.074 MB / 174.1 MB " [Timeout remaining time 178] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001725/0.001725, allocations: 52.55 kB / 342.3 MB, free: 10 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08684/0.08857, allocations: 49.13 MB / 391.4 MB, free: 8.707 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.0087/0.09727, allocations: 7.377 MB / 398.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0134/0.1107, allocations: 10.42 MB / 409.2 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001282/0.112, allocations: 118.6 kB / 409.3 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001899/0.1138, allocations: 0.7026 MB / 410 MB, free: 6.008 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004615/0.1185, allocations: 1.18 MB / 411.2 MB, free: 4.82 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002196/0.1207, allocations: 0.67 MB / 411.9 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004286/0.1249, allocations: 2.49 MB / 414.4 MB, free: 1.648 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003852/0.1253, allocations: 180 kB / 414.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006729/0.126, allocations: 0.4899 MB / 415 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006185/0.1266, allocations: 0.524 MB / 415.6 MB, free: 444 kB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.461e-05/0.1267, allocations: 56 kB / 415.6 MB, free: 388 kB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001685/0.1284, allocations: 0.6948 MB / 416.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001761/0.1286, allocations: 186.8 kB / 416.5 MB, free: 15.5 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006302/0.1292, allocations: 0.6715 MB / 417.2 MB, free: 14.82 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002503/0.1317, allocations: 1.96 MB / 419.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1317, allocations: 0 / 419.1 MB, free: 12.86 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1317, allocations: 4 kB / 419.1 MB, free: 12.85 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.218e-05/0.1317, allocations: 0 / 419.1 MB, free: 12.85 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.00307/0.1348, allocations: 2.039 MB / 421.2 MB, free: 10.75 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.244e-05/0.1349, allocations: 12.03 kB / 421.2 MB, free: 10.74 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001109/0.135, allocations: 90.7 kB / 421.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002414/0.1352, allocations: 207.7 kB / 421.5 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00189/0.1371, allocations: 1.354 MB / 422.8 MB, free: 9.043 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.454e-05/0.1371, allocations: 29 kB / 422.8 MB, free: 9.012 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.2e-05/0.1372, allocations: 51.94 kB / 422.9 MB, free: 8.961 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009677/0.1382, allocations: 0.5119 MB / 423.4 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.63e-05/0.1382, allocations: 7.984 kB / 423.4 MB, free: 8.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.413e-05/0.1383, allocations: 20 kB / 423.4 MB, free: 8.418 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.889e-05/0.1383, allocations: 11.98 kB / 423.4 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009792/0.1393, allocations: 476.1 kB / 423.9 MB, free: 7.938 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003079/0.1423, allocations: 2.097 MB / 426 MB, free: 5.754 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001034/0.1434, allocations: 0.6464 MB / 426.7 MB, free: 5.062 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007419/0.1441, allocations: 461.8 kB / 427.1 MB, free: 4.609 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008252/0.1524, allocations: 6.513 MB / 433.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005864/0.1529, allocations: 290.6 kB / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.355e-06/0.153, allocations: 0 / 433.9 MB, free: 12.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003858/0.1568, allocations: 1.99 MB / 435.9 MB, free: 10.77 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.1569, allocations: 55.84 kB / 435.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001595/0.1585, allocations: 1.3 MB / 437.2 MB, free: 9.402 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.206e-05/0.1585, allocations: 29.7 kB / 437.3 MB, free: 9.367 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006184/0.1591, allocations: 0.7196 MB / 438 MB, free: 8.641 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001772/0.1593, allocations: 214.1 kB / 438.2 MB, free: 8.43 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001919/0.1595, allocations: 126.3 kB / 438.3 MB, free: 8.301 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1596, allocations: 338 kB / 438.7 MB, free: 7.965 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004367/0.1601, allocations: 193.6 kB / 438.8 MB, free: 7.773 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005654/0.1606, allocations: 363.8 kB / 439.2 MB, free: 7.348 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002438/0.1631, allocations: 1.127 MB / 440.3 MB, free: 6.152 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.97e-06/0.1631, allocations: 3.938 kB / 440.3 MB, free: 6.148 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001696/0.1648, allocations: 0.9272 MB / 441.3 MB, free: 5.211 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.644e-05/0.1648, allocations: 12.12 kB / 441.3 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.545e-05/0.1649, allocations: 55.98 kB / 441.3 MB, free: 5.145 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000417/0.1653, allocations: 160.7 kB / 441.5 MB, free: 4.984 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004828/0.1658, allocations: 115.8 kB / 441.6 MB, free: 4.871 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003011/0.1688, allocations: 2.51 MB / 444.1 MB, free: 2.223 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.1693, allocations: 28.02 kB / 444.1 MB, free: 2.195 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.999e-05/0.1693, allocations: 32 kB / 444.2 MB, free: 2.164 MB / 366.1 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = \"V\" fixed = true ) type: Real T1.vbx:VARIABLE(unit = \"V\" fixed = true ) type: Real 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.0004884/0.1698, allocations: 281.6 kB / 444.4 MB, free: 1.879 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002028/0.17, allocations: 190.8 kB / 444.6 MB, free: 1.691 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001851/0.1719, allocations: 0.8827 MB / 445.5 MB, free: 0.7969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.468e-06/0.1719, allocations: 4 kB / 445.5 MB, free: 0.793 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.1719, allocations: 4 kB / 445.5 MB, free: 0.7891 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/0.1719, allocations: 3.984 kB / 445.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001037/0.1729, allocations: 0.8747 MB / 446.4 MB, free: 15.86 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.389e-05/0.173, allocations: 52 kB / 446.4 MB, free: 15.81 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003238/0.1733, allocations: 67.89 kB / 446.5 MB, free: 15.75 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003858/0.1737, allocations: 145 kB / 446.7 MB, free: 15.6 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.454e-05/0.1738, allocations: 20 kB / 446.7 MB, free: 15.58 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002851/0.1766, allocations: 2.498 MB / 449.2 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.1766, allocations: 4 kB / 449.2 MB, free: 12.94 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001983/0.1786, allocations: 1.069 MB / 450.2 MB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003458/0.1789, allocations: 255.9 kB / 450.5 MB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000128/0.1791, allocations: 12 kB / 450.5 MB, free: 11.56 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003568/0.1794, allocations: 23.92 kB / 450.5 MB, free: 11.54 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001221/0.1796, allocations: 52.38 kB / 450.6 MB, free: 11.49 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.193e-05/0.1796, allocations: 20 kB / 450.6 MB, free: 11.47 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001149/0.1808, allocations: 0.8617 MB / 451.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1808, allocations: 0 / 451.5 MB, free: 10.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009762/0.1817, allocations: 383.2 kB / 451.8 MB, free: 10.24 MB / 382.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.003022/0.1848, allocations: 1.962 MB / 453.8 MB, free: 8.246 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.1865, allocations: 0.8054 MB / 454.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1865, allocations: 0 / 454.6 MB, free: 7.414 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001027/0.1875, allocations: 0.5588 MB / 455.2 MB, free: 6.832 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007574/0.1882, allocations: 186.3 kB / 455.3 MB, free: 6.648 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1835/0.3718, allocations: 9.28 MB / 464.6 MB, free: 64.5 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006487/0.3724, allocations: 1.171 MB / 465.8 MB, free: 63.79 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005053/0.3729, allocations: 181.2 kB / 466 MB, free: 63.77 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005092/0.3734, allocations: 0.5709 MB / 466.5 MB, free: 63.77 MB / 382.1 MB Notification: Performance of SimCode: time 1.413e-06/0.3734, allocations: 1.156 kB / 466.5 MB, free: 63.77 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06195/0.4354, allocations: 29.08 MB / 495.6 MB, free: 44.44 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.2, allocations: 15.97 kB / 495.6 MB, free: 44.43 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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: 15.81777195900213]