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.001298/0.001298, allocations: 107.6 kB / 21.18 MB, free: 452 kB / 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.001461/0.001461, allocations: 215 kB / 24.47 MB, free: 3.777 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.366/1.366, allocations: 207.7 MB / 235.3 MB, free: 9.797 MB / 190.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.002094/0.002094, allocations: 62.94 kB / 347.2 MB, free: 9.895 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2582/0.2603, allocations: 49.15 MB / 396.3 MB, free: 8.875 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.006312/0.2666, allocations: 6.343 MB / 402.7 MB, free: 4.613 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01324/0.2799, allocations: 9.019 MB / 411.7 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003597/0.2835, allocations: 121 kB / 411.8 MB, free: 14.29 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003219/0.2867, allocations: 0.6195 MB / 412.4 MB, free: 13.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006856/0.2935, allocations: 1.189 MB / 413.6 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003257/0.2968, allocations: 0.6633 MB / 414.3 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004794/0.3016, allocations: 2.507 MB / 416.8 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003715/0.302, allocations: 171.6 kB / 417 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006675/0.3026, allocations: 0.4888 MB / 417.5 MB, free: 11.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006057/0.3032, allocations: 0.4902 MB / 418 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.829e-05/0.3033, allocations: 58.38 kB / 418 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.3049, allocations: 0.6639 MB / 418.7 MB, free: 10.65 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001812/0.3051, allocations: 182.4 kB / 418.9 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005205/0.3056, allocations: 0.5043 MB / 419.4 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0024/0.308, allocations: 1.967 MB / 421.3 MB, free: 8.859 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.057e-06/0.308, allocations: 4 kB / 421.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.063e-06/0.308, allocations: 0 / 421.3 MB, free: 8.855 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.538e-05/0.308, allocations: 1.781 kB / 421.3 MB, free: 8.855 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: 131 * Number of variables: 131 Notification: Performance of Generate backend data structure: time 0.003471/0.3115, allocations: 1.967 MB / 423.3 MB, free: 7.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.3116, allocations: 13.36 kB / 423.3 MB, free: 7.363 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001165/0.3117, allocations: 94.78 kB / 423.4 MB, free: 7.277 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.312, allocations: 206.9 kB / 423.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002293/0.3142, allocations: 1.235 MB / 424.8 MB, free: 6.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.037e-05/0.3143, allocations: 38.58 kB / 424.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.3144, allocations: 44.86 kB / 424.9 MB, free: 6.18 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00101/0.3154, allocations: 0.5124 MB / 425.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.639e-05/0.3154, allocations: 0 / 425.4 MB, free: 5.863 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.197e-05/0.3155, allocations: 16 kB / 425.4 MB, free: 5.848 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.764e-05/0.3155, allocations: 19.98 kB / 425.5 MB, free: 5.828 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009808/0.3165, allocations: 480 kB / 425.9 MB, free: 5.359 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003625/0.3201, allocations: 1.945 MB / 427.9 MB, free: 3.332 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001025/0.3211, allocations: 0.4997 MB / 428.4 MB, free: 2.816 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007671/0.3219, allocations: 473.3 kB / 428.8 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006596/0.3285, allocations: 2.518 MB / 431.4 MB, free: 15.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006885/0.3292, allocations: 294.1 kB / 431.6 MB, free: 15.51 MB / 350.1 MB Notification: Performance of pre-optimization done (n=55): time 2.164e-06/0.3292, allocations: 4 kB / 431.7 MB, free: 15.51 MB / 350.1 MB Notification: Performance of matching and sorting (n=59): time 0.003914/0.3331, allocations: 1.904 MB / 433.6 MB, free: 13.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.441e-05/0.3332, allocations: 59.83 kB / 433.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001598/0.3348, allocations: 1.304 MB / 434.9 MB, free: 12.2 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.163e-05/0.3348, allocations: 33.7 kB / 434.9 MB, free: 12.16 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009527/0.3358, allocations: 0.7157 MB / 435.7 MB, free: 11.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001993/0.336, allocations: 214.1 kB / 435.9 MB, free: 11.23 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001885/0.3362, allocations: 122.3 kB / 436 MB, free: 11.1 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3363, allocations: 334 kB / 436.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/0.3368, allocations: 201.4 kB / 436.5 MB, free: 10.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006529/0.3374, allocations: 363.8 kB / 436.9 MB, free: 10.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002589/0.34, allocations: 1.132 MB / 438 MB, free: 8.945 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.34, allocations: 3.938 kB / 438 MB, free: 8.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001806/0.3418, allocations: 0.9209 MB / 438.9 MB, free: 8.008 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.012e-05/0.3418, allocations: 8 kB / 438.9 MB, free: 8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.887e-05/0.3419, allocations: 52 kB / 439 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004428/0.3424, allocations: 169.1 kB / 439.2 MB, free: 7.781 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004509/0.3428, allocations: 103.9 kB / 439.3 MB, free: 7.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003393/0.3462, allocations: 2.383 MB / 441.6 MB, free: 5.184 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006135/0.3468, allocations: 39.95 kB / 441.7 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.267e-05/0.3469, allocations: 32 kB / 441.7 MB, free: 5.113 MB / 350.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.0004998/0.3474, allocations: 273.7 kB / 442 MB, free: 4.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002076/0.3476, allocations: 186.9 kB / 442.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001896/0.3495, allocations: 0.8854 MB / 443 MB, free: 3.758 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.384e-06/0.3495, allocations: 4 kB / 443 MB, free: 3.754 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.062e-06/0.3495, allocations: 4 kB / 443 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.11e-06/0.3495, allocations: 0 / 443 MB, free: 3.75 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001299/0.3508, allocations: 0.7881 MB / 443.8 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.319e-05/0.3509, allocations: 59.98 kB / 443.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003128/0.3512, allocations: 67.83 kB / 444 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003723/0.3516, allocations: 149 kB / 444.1 MB, free: 2.648 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.065e-05/0.3516, allocations: 16 kB / 444.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003061/0.3547, allocations: 2.364 MB / 446.5 MB, free: 160 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.3547, allocations: 4.031 kB / 446.5 MB, free: 156 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002135/0.3568, allocations: 1.069 MB / 447.6 MB, free: 15.05 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000563/0.3574, allocations: 174.9 kB / 447.7 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001381/0.3575, allocations: 12 kB / 447.7 MB, free: 14.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.3579, allocations: 19.98 kB / 447.8 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001339/0.358, allocations: 52.34 kB / 447.8 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.584e-05/0.3581, allocations: 27.88 kB / 447.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001267/0.3593, allocations: 0.8578 MB / 448.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3593, allocations: 0 / 448.7 MB, free: 13.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001072/0.3604, allocations: 387.2 kB / 449.1 MB, free: 13.54 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.003282/0.3637, allocations: 1.977 MB / 451.1 MB, free: 11.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001779/0.3655, allocations: 0.8049 MB / 451.9 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.939e-06/0.3655, allocations: 4.062 kB / 451.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001009/0.3665, allocations: 0.5433 MB / 452.4 MB, free: 10.14 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008456/0.3673, allocations: 186.2 kB / 452.6 MB, free: 9.953 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01408/0.3814, allocations: 9.275 MB / 461.9 MB, free: 364 kB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006405/0.3821, allocations: 0.5876 MB / 462.4 MB, free: 15.72 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0005067/0.3826, allocations: 191.1 kB / 462.6 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006798/0.3832, allocations: 0.5695 MB / 463.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3832, allocations: 0 / 463.2 MB, free: 14.96 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07528/0.4585, allocations: 30.34 MB / 493.5 MB, free: 0.5117 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.87, allocations: 7.891 kB / 493.6 MB, free: 0.5039 MB / 398.1 MB " [Timeout remaining time 646] (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: 16.52160525834188]