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.001336/0.001336, allocations: 108.6 kB / 21.22 MB, free: 0.75 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.001524/0.001524, allocations: 191.7 kB / 24.5 MB, free: 4.02 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.356/1.356, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001604/0.001604, allocations: 43.92 kB / 371.2 MB, free: 9.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2589/0.2605, allocations: 52.19 MB / 423.4 MB, free: 14.6 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.009133/0.2696, allocations: 7.544 MB / 431 MB, free: 7.023 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01367/0.2833, allocations: 10.76 MB / 441.7 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001349/0.2846, allocations: 122.6 kB / 441.8 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002017/0.2866, allocations: 0.7095 MB / 442.5 MB, free: 11.38 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003556/0.2902, allocations: 1.206 MB / 443.7 MB, free: 10.17 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0018/0.292, allocations: 0.6723 MB / 444.4 MB, free: 9.492 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004009/0.296, allocations: 2.551 MB / 447 MB, free: 6.934 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003538/0.2964, allocations: 184.3 kB / 447.2 MB, free: 6.734 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006538/0.297, allocations: 0.5093 MB / 447.7 MB, free: 6.223 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006409/0.2977, allocations: 0.5396 MB / 448.2 MB, free: 5.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.713e-05/0.2978, allocations: 56 kB / 448.3 MB, free: 5.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001651/0.2994, allocations: 0.7688 MB / 449 MB, free: 4.855 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001698/0.2996, allocations: 182.8 kB / 449.2 MB, free: 4.676 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006119/0.3002, allocations: 0.6793 MB / 449.9 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002486/0.3027, allocations: 1.952 MB / 451.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.3027, allocations: 0 / 451.8 MB, free: 2.031 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.3027, allocations: 4 kB / 451.8 MB, free: 2.027 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.448e-05/0.3027, allocations: 0 / 451.8 MB, free: 2.027 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.002919/0.3056, allocations: 1.975 MB / 453.8 MB, free: 12 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.906e-05/0.3057, allocations: 12.03 kB / 453.8 MB, free: 0 / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.865e-05/0.3057, allocations: 17.17 kB / 453.8 MB, free: 15.98 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.3058, allocations: 94.64 kB / 453.9 MB, free: 15.88 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002226/0.306, allocations: 199.7 kB / 454.1 MB, free: 15.69 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001962/0.308, allocations: 1.239 MB / 455.4 MB, free: 14.39 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.102e-05/0.308, allocations: 33 kB / 455.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.218e-05/0.3081, allocations: 48 kB / 455.4 MB, free: 14.31 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009599/0.3091, allocations: 0.5119 MB / 456 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.3091, allocations: 0 / 456 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.793e-05/0.3091, allocations: 16 kB / 456 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.561e-05/0.3092, allocations: 19.98 kB / 456 MB, free: 13.75 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00096/0.3101, allocations: 480 kB / 456.5 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003172/0.3133, allocations: 2.05 MB / 458.5 MB, free: 11.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009368/0.3142, allocations: 0.5065 MB / 459 MB, free: 10.64 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007568/0.315, allocations: 469.4 kB / 459.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006398/0.3214, allocations: 2.596 MB / 462.1 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006021/0.322, allocations: 298.1 kB / 462.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 3.126e-06/0.322, allocations: 0 / 462.4 MB, free: 7.262 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.00382/0.3258, allocations: 1.9 MB / 464.3 MB, free: 5.324 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.923e-05/0.3259, allocations: 59.84 kB / 464.3 MB, free: 5.254 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00183/0.3277, allocations: 1.296 MB / 465.6 MB, free: 3.961 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.3278, allocations: 37.7 kB / 465.7 MB, free: 3.918 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007289/0.3285, allocations: 0.7195 MB / 466.4 MB, free: 3.191 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002177/0.3287, allocations: 218.1 kB / 466.6 MB, free: 2.977 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002302/0.3289, allocations: 130.2 kB / 466.7 MB, free: 2.844 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001939/0.3291, allocations: 330 kB / 467 MB, free: 2.516 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000433/0.3296, allocations: 193.6 kB / 467.2 MB, free: 2.324 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006011/0.3302, allocations: 371.8 kB / 467.6 MB, free: 1.898 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001066/0.3312, allocations: 0.592 MB / 468.2 MB, free: 1.234 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.089e-06/0.3312, allocations: 4 kB / 468.2 MB, free: 1.23 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001668/0.3329, allocations: 0.9208 MB / 469.1 MB, free: 308 kB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.63e-05/0.3329, allocations: 8 kB / 469.1 MB, free: 300 kB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.82e-05/0.333, allocations: 52 kB / 469.2 MB, free: 248 kB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004844/0.3335, allocations: 165.2 kB / 469.3 MB, free: 80 kB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004863/0.334, allocations: 111.9 kB / 469.4 MB, free: 15.96 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003407/0.3374, allocations: 2.413 MB / 471.9 MB, free: 13.45 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005776/0.338, allocations: 24.03 kB / 471.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.801e-05/0.3381, allocations: 32 kB / 471.9 MB, free: 13.39 MB / 382.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.0005314/0.3386, allocations: 281.6 kB / 472.2 MB, free: 13.11 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002049/0.3388, allocations: 186.9 kB / 472.4 MB, free: 12.93 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001787/0.3406, allocations: 0.8815 MB / 473.2 MB, free: 12.03 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.008e-05/0.3406, allocations: 8 kB / 473.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.887e-06/0.3406, allocations: 0 / 473.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.654e-06/0.3406, allocations: 3.984 kB / 473.3 MB, free: 12.02 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001159/0.3418, allocations: 0.8504 MB / 474.1 MB, free: 11.12 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.76e-05/0.3418, allocations: 48 kB / 474.2 MB, free: 11.08 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003101/0.3421, allocations: 67.89 kB / 474.2 MB, free: 11.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003834/0.3425, allocations: 147.5 kB / 474.4 MB, free: 10.87 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.809e-05/0.3426, allocations: 24 kB / 474.4 MB, free: 10.84 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002893/0.3455, allocations: 2.376 MB / 476.8 MB, free: 8.355 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.085e-06/0.3455, allocations: 7.875 kB / 476.8 MB, free: 8.348 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002043/0.3475, allocations: 1.069 MB / 477.8 MB, free: 7.254 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000367/0.3479, allocations: 178.8 kB / 478 MB, free: 7.078 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001257/0.348, allocations: 8 kB / 478 MB, free: 7.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003441/0.3484, allocations: 23.98 kB / 478 MB, free: 7.047 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001319/0.3485, allocations: 48.34 kB / 478.1 MB, free: 7 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.725e-05/0.3485, allocations: 20 kB / 478.1 MB, free: 6.98 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001185/0.3497, allocations: 0.8617 MB / 479 MB, free: 6.129 MB / 382.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3497, allocations: 0 / 479 MB, free: 6.129 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00102/0.3507, allocations: 379.2 kB / 479.3 MB, free: 5.758 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.002964/0.3537, allocations: 1.98 MB / 481.3 MB, free: 3.746 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.00168/0.3554, allocations: 0.8049 MB / 482.1 MB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.3554, allocations: 0 / 482.1 MB, free: 2.914 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001/0.3564, allocations: 0.555 MB / 482.7 MB, free: 2.332 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008598/0.3573, allocations: 201.4 kB / 482.9 MB, free: 2.137 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01324/0.3705, allocations: 9.315 MB / 492.2 MB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007761/0.3713, allocations: 1.17 MB / 493.4 MB, free: 7.293 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004674/0.3717, allocations: 183.2 kB / 493.5 MB, free: 7.109 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006216/0.3724, allocations: 0.5696 MB / 494.1 MB, free: 6.539 MB / 398.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3724, allocations: 4 kB / 494.1 MB, free: 6.535 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07787/0.4502, allocations: 29.69 MB / 0.5115 GB, free: 9.082 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.37/14.82, allocations: 12.25 kB / 0.5115 GB, free: 9.078 MB / 430.1 MB " [Timeout remaining time 645] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-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.mat","/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 659] Reference file matches [Calling sys.exit(0), Time elapsed: 18.12566992500797]