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.001298/0.001298, allocations: 118.9 kB / 17.79 MB, free: 5.285 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.001435/0.001435, allocations: 199.3 kB / 20.74 MB, free: 2.344 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.441/1.441, allocations: 230.6 MB / 254.1 MB, free: 15.08 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.001511/0.001511, allocations: 55.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09628/0.09779, allocations: 53.31 MB / 426.3 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.1915/0.2893, allocations: 7.538 MB / 433.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01007/0.2994, allocations: 10.77 MB / 444.6 MB, free: 0.5625 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009466/0.3003, allocations: 121.5 kB / 444.7 MB, free: 488 kB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001558/0.3019, allocations: 0.712 MB / 445.4 MB, free: 92 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00382/0.3057, allocations: 1.198 MB / 446.6 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00197/0.3077, allocations: 0.6824 MB / 447.3 MB, free: 15.03 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004279/0.312, allocations: 2.566 MB / 449.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004208/0.3124, allocations: 177.5 kB / 450.1 MB, free: 13.94 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009666/0.3133, allocations: 0.5114 MB / 450.6 MB, free: 13.72 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000689/0.314, allocations: 0.5356 MB / 451.1 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001015/0.3141, allocations: 59.92 kB / 451.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002075/0.3162, allocations: 0.772 MB / 451.9 MB, free: 13.22 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002149/0.3164, allocations: 183.1 kB / 452.1 MB, free: 13.09 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008246/0.3173, allocations: 0.6727 MB / 452.8 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003329/0.3206, allocations: 1.963 MB / 454.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3206, allocations: 0 / 454.7 MB, free: 11.8 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.703e-06/0.3206, allocations: 4 kB / 454.8 MB, free: 11.8 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.23e-05/0.3206, allocations: 0 / 454.8 MB, free: 11.8 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.003635/0.3243, allocations: 2.042 MB / 456.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.3243, allocations: 10.66 kB / 456.8 MB, free: 10.39 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001237/0.3244, allocations: 90.16 kB / 456.9 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002819/0.3247, allocations: 208.7 kB / 457.1 MB, free: 10.22 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002395/0.3271, allocations: 1.355 MB / 458.5 MB, free: 9.473 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.536e-05/0.3271, allocations: 32.31 kB / 458.5 MB, free: 9.461 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.465e-05/0.3272, allocations: 49.06 kB / 458.5 MB, free: 9.441 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001014/0.3282, allocations: 0.5163 MB / 459 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.558e-05/0.3283, allocations: 0.9844 kB / 459 MB, free: 9.23 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.563e-05/0.3283, allocations: 20.31 kB / 459.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.899e-05/0.3283, allocations: 15.09 kB / 459.1 MB, free: 9.215 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009711/0.3293, allocations: 472 kB / 459.5 MB, free: 9.055 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003524/0.3328, allocations: 2.109 MB / 461.7 MB, free: 7.668 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001067/0.3339, allocations: 0.648 MB / 462.3 MB, free: 7.195 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007737/0.3347, allocations: 469.8 kB / 462.8 MB, free: 6.949 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00672/0.3414, allocations: 4.918 MB / 467.7 MB, free: 2.371 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006222/0.342, allocations: 312.1 kB / 468 MB, free: 2.18 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.106e-06/0.342, allocations: 0 / 468 MB, free: 2.18 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005675/0.3477, allocations: 2.423 MB / 470.4 MB, free: 0.707 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.866e-05/0.3477, allocations: 57.59 kB / 470.5 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001702/0.3494, allocations: 1.284 MB / 471.7 MB, free: 15.96 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.564e-05/0.3495, allocations: 36.48 kB / 471.8 MB, free: 15.92 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006641/0.3502, allocations: 0.708 MB / 472.5 MB, free: 15.29 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002207/0.3504, allocations: 232.3 kB / 472.7 MB, free: 15.09 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002145/0.3506, allocations: 126.1 kB / 472.8 MB, free: 15.01 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.3508, allocations: 332.4 kB / 473.2 MB, free: 14.69 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004711/0.3512, allocations: 219 kB / 473.4 MB, free: 14.58 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005892/0.3518, allocations: 360.2 kB / 473.7 MB, free: 14.3 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001084/0.3529, allocations: 0.6173 MB / 474.3 MB, free: 13.88 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.3529, allocations: 3.938 kB / 474.4 MB, free: 13.87 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001946/0.3549, allocations: 0.9613 MB / 475.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.759e-05/0.3549, allocations: 7.938 kB / 475.3 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.439e-05/0.355, allocations: 59.06 kB / 475.4 MB, free: 13.38 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005163/0.3555, allocations: 190.1 kB / 475.6 MB, free: 13.29 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004602/0.3559, allocations: 104.4 kB / 475.7 MB, free: 13.27 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003627/0.3596, allocations: 2.768 MB / 478.4 MB, free: 10.96 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008149/0.3604, allocations: 24.41 kB / 478.5 MB, free: 10.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.168e-05/0.3605, 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.0005159/0.361, allocations: 274.3 kB / 478.8 MB, free: 10.73 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002284/0.3612, allocations: 191 kB / 478.9 MB, free: 10.63 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002082/0.3633, allocations: 0.967 MB / 479.9 MB, free: 9.906 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.987e-06/0.3633, allocations: 5.969 kB / 479.9 MB, free: 9.902 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.3633, allocations: 4 kB / 479.9 MB, free: 9.898 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.307e-06/0.3633, allocations: 3.984 kB / 479.9 MB, free: 9.895 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001372/0.3647, allocations: 0.9059 MB / 480.8 MB, free: 8.938 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.103e-05/0.3648, allocations: 56 kB / 480.9 MB, free: 8.883 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003443/0.3651, allocations: 71.88 kB / 481 MB, free: 8.812 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00047/0.3656, allocations: 171.5 kB / 481.1 MB, free: 8.645 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.989e-05/0.3656, allocations: 29.11 kB / 481.1 MB, free: 8.617 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003435/0.3691, allocations: 2.752 MB / 483.9 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.056e-06/0.3691, allocations: 1.594 kB / 483.9 MB, free: 5.727 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002249/0.3713, allocations: 1.194 MB / 485.1 MB, free: 4.512 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000452/0.3718, allocations: 256 kB / 485.3 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001436/0.3719, allocations: 15.94 kB / 485.4 MB, free: 4.227 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003787/0.3723, allocations: 19.97 kB / 485.4 MB, free: 4.207 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001344/0.3724, allocations: 52.38 kB / 485.4 MB, free: 4.156 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.747e-05/0.3725, allocations: 20 kB / 485.5 MB, free: 4.137 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001139/0.3736, allocations: 0.8535 MB / 486.3 MB, free: 3.293 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3736, allocations: 4 kB / 486.3 MB, free: 3.289 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001057/0.3747, allocations: 391.2 kB / 486.7 MB, free: 2.906 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.003371/0.3781, allocations: 2.086 MB / 488.8 MB, free: 0.793 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001911/0.38, allocations: 0.8745 MB / 489.7 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.38, allocations: 4.062 kB / 489.7 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00116/0.3811, allocations: 0.6079 MB / 490.3 MB, free: 15.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.3822, allocations: 218.2 kB / 490.5 MB, free: 15.04 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01561/0.3978, allocations: 9.437 MB / 499.9 MB, free: 5.312 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008954/0.3987, allocations: 1.174 MB / 0.4893 GB, free: 4.105 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005181/0.3992, allocations: 187.2 kB / 0.4895 GB, free: 3.918 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006847/0.3999, allocations: 0.5696 MB / 0.4901 GB, free: 3.348 MB / 398.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3999, allocations: 0 / 0.4901 GB, free: 3.348 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07577/0.4757, allocations: 29.9 MB / 0.5193 GB, free: 5.664 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.8, allocations: 7.938 kB / 0.5193 GB, free: 5.656 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/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.62840076489374]