Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001824/0.001824, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.002105/0.002105, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.489/1.489, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001482/0.001482, allocations: 47.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1043/0.1058, allocations: 53.32 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.2063/0.3121, allocations: 7.542 MB / 433.8 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01091/0.323, allocations: 10.77 MB / 444.6 MB, free: 0.5703 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001364/0.3244, allocations: 121.8 kB / 444.7 MB, free: 496 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002078/0.3265, allocations: 0.7131 MB / 445.4 MB, free: 100 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005027/0.3315, allocations: 1.198 MB / 446.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002678/0.3342, allocations: 0.6778 MB / 447.3 MB, free: 15.04 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005424/0.3396, allocations: 2.57 MB / 449.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004951/0.3401, allocations: 184.7 kB / 450.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000989/0.3411, allocations: 0.5069 MB / 450.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007631/0.3418, allocations: 0.5369 MB / 451.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001181/0.342, allocations: 55.53 kB / 451.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002481/0.3444, allocations: 0.7721 MB / 451.9 MB, free: 13.23 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000207/0.3447, allocations: 183.2 kB / 452.1 MB, free: 13.1 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007858/0.3454, allocations: 0.6757 MB / 452.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003241/0.3487, allocations: 1.962 MB / 454.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.3487, allocations: 0.7969 kB / 454.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.984e-06/0.3487, allocations: 0.875 kB / 454.8 MB, free: 11.81 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.048e-05/0.3487, allocations: 0 / 454.8 MB, free: 11.81 MB / 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.003636/0.3524, allocations: 2.047 MB / 456.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.3524, allocations: 9.625 kB / 456.8 MB, free: 10.4 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001313/0.3525, allocations: 87.72 kB / 456.9 MB, free: 10.33 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002864/0.3528, allocations: 211.3 kB / 457.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002239/0.3551, allocations: 1.355 MB / 458.5 MB, free: 9.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.749e-05/0.3551, allocations: 34.77 kB / 458.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.477e-05/0.3552, allocations: 46.39 kB / 458.5 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.3562, allocations: 0.5121 MB / 459 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.424e-05/0.3562, allocations: 0 / 459 MB, free: 9.238 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.317e-05/0.3563, allocations: 15.69 kB / 459.1 MB, free: 9.227 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.152e-05/0.3563, allocations: 20.84 kB / 459.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009596/0.3573, allocations: 472.5 kB / 459.5 MB, free: 9.062 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0036/0.3609, allocations: 2.109 MB / 461.7 MB, free: 7.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.3619, allocations: 0.6494 MB / 462.3 MB, free: 7.203 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007742/0.3627, allocations: 462 kB / 462.8 MB, free: 6.961 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006798/0.3695, allocations: 4.91 MB / 467.7 MB, free: 2.391 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006656/0.3702, allocations: 316.9 kB / 468 MB, free: 2.195 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.978e-06/0.3702, allocations: 1.688 kB / 468 MB, free: 2.195 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005596/0.3758, allocations: 2.421 MB / 470.4 MB, free: 0.7227 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.746e-05/0.3759, allocations: 66.09 kB / 470.5 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001734/0.3776, allocations: 1.289 MB / 471.8 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.742e-05/0.3776, allocations: 36.05 kB / 471.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006677/0.3783, allocations: 0.7 MB / 472.5 MB, free: 15.3 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002147/0.3785, allocations: 235.7 kB / 472.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.3787, allocations: 123.6 kB / 472.8 MB, free: 15.02 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.3789, allocations: 331 kB / 473.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004963/0.3794, allocations: 224.3 kB / 473.4 MB, free: 14.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005865/0.38, allocations: 355.3 kB / 473.7 MB, free: 14.31 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001112/0.3811, allocations: 0.6131 MB / 474.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.261e-06/0.3811, allocations: 6.25 kB / 474.3 MB, free: 13.89 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001845/0.3829, allocations: 0.9642 MB / 475.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.959e-05/0.383, allocations: 6.375 kB / 475.3 MB, free: 13.39 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-05/0.3831, allocations: 68.48 kB / 475.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005081/0.3836, allocations: 183.3 kB / 475.6 MB, free: 13.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004599/0.384, allocations: 111.3 kB / 475.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003636/0.3877, allocations: 2.761 MB / 478.4 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007336/0.3884, allocations: 32.39 kB / 478.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.961e-05/0.3885, allocations: 30.12 kB / 478.5 MB, free: 10.95 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (54): * Single equations (assignments): 51 * 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,17,75.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005218/0.389, allocations: 270.3 kB / 478.8 MB, free: 10.74 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002426/0.3892, allocations: 191 kB / 478.9 MB, free: 10.64 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002127/0.3913, allocations: 0.9589 MB / 479.9 MB, free: 9.926 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.3914, allocations: 8 kB / 479.9 MB, free: 9.918 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.3914, allocations: 4.875 kB / 479.9 MB, free: 9.914 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.955e-06/0.3914, allocations: 7.984 kB / 479.9 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00132/0.3927, allocations: 0.8981 MB / 480.8 MB, free: 8.957 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.698e-05/0.3928, allocations: 60 kB / 480.9 MB, free: 8.898 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003628/0.3931, allocations: 67.89 kB / 480.9 MB, free: 8.832 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004978/0.3936, allocations: 171.9 kB / 481.1 MB, free: 8.664 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.435e-05/0.3937, allocations: 28.8 kB / 481.1 MB, free: 8.637 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003643/0.3973, allocations: 2.762 MB / 483.9 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.3973, allocations: 0 / 483.9 MB, free: 5.742 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002466/0.3998, allocations: 1.182 MB / 485.1 MB, free: 4.539 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000542/0.4004, allocations: 260 kB / 485.3 MB, free: 4.266 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.4005, allocations: 15.94 kB / 485.4 MB, free: 4.25 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003911/0.4009, allocations: 27.97 kB / 485.4 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001468/0.401, allocations: 44.38 kB / 485.4 MB, free: 4.18 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.6e-05/0.4011, allocations: 24 kB / 485.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001282/0.4024, allocations: 0.8574 MB / 486.3 MB, free: 3.309 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4024, allocations: 0 / 486.3 MB, free: 3.309 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001143/0.4035, allocations: 391.2 kB / 486.7 MB, free: 2.926 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 (31): * Single equations (assignments): 25 * 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,17,81.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003448/0.407, allocations: 2.09 MB / 488.8 MB, free: 0.8086 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002081/0.4091, allocations: 0.8823 MB / 489.7 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.496e-06/0.4091, allocations: 0 / 489.7 MB, free: 15.9 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001236/0.4103, allocations: 0.6041 MB / 490.3 MB, free: 15.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001373/0.4117, allocations: 208.8 kB / 490.5 MB, free: 15.07 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01572/0.4274, allocations: 9.441 MB / 499.9 MB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008891/0.4283, allocations: 1.174 MB / 0.4893 GB, free: 4.129 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005024/0.4288, allocations: 183.2 kB / 0.4895 GB, free: 3.945 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006761/0.4294, allocations: 0.5696 MB / 0.4901 GB, free: 3.375 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.4295, allocations: 0 / 0.4901 GB, free: 3.375 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07781/0.5073, allocations: 29.9 MB / 0.5193 GB, free: 5.691 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.48/13.99, allocations: 7.938 kB / 0.5193 GB, free: 5.684 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.768470291994163]