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.001541/0.001541, allocations: 125 kB / 17.79 MB, free: 5.121 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.0016/0.0016, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.437/1.437, allocations: 225.6 MB / 249.1 MB, free: 3.609 MB / 190.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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001549/0.001549, allocations: 55.86 kB / 365.6 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1/0.1016, allocations: 52.13 MB / 417.8 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008575/0.1102, allocations: 7.527 MB / 425.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01326/0.1234, allocations: 10.74 MB / 436 MB, free: 10.32 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001074/0.1245, allocations: 87.25 kB / 436.1 MB, free: 10.24 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001791/0.1263, allocations: 0.7024 MB / 436.8 MB, free: 9.527 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003744/0.13, allocations: 1.2 MB / 438 MB, free: 8.32 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001823/0.1319, allocations: 0.6778 MB / 438.7 MB, free: 7.641 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003764/0.1356, allocations: 2.549 MB / 441.2 MB, free: 5.082 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003814/0.136, allocations: 175.9 kB / 441.4 MB, free: 4.891 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006942/0.1367, allocations: 0.4938 MB / 441.9 MB, free: 4.395 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006292/0.1373, allocations: 0.5356 MB / 442.5 MB, free: 3.855 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 8.993e-05/0.1374, allocations: 56 kB / 442.5 MB, free: 3.801 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001689/0.1391, allocations: 0.7727 MB / 443.3 MB, free: 3.027 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00018/0.1393, allocations: 178.8 kB / 443.5 MB, free: 2.852 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006455/0.1399, allocations: 0.6715 MB / 444.1 MB, free: 2.176 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002426/0.1424, allocations: 1.964 MB / 446.1 MB, free: 208 kB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1424, allocations: 4 kB / 446.1 MB, free: 204 kB / 366.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1424, allocations: 0 / 446.1 MB, free: 204 kB / 366.1 MB Notification: Performance of Transformations before backend: time 1.895e-05/0.1424, allocations: 0 / 446.1 MB, free: 204 kB / 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.1734/0.3158, allocations: 2.042 MB / 448.1 MB, free: 31.02 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.657e-05/0.3158, allocations: 9.234 kB / 448.1 MB, free: 31.02 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.264e-05/0.3159, allocations: 94.08 kB / 448.2 MB, free: 30.98 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001918/0.3161, allocations: 203.4 kB / 448.4 MB, free: 30.88 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001769/0.3179, allocations: 1.357 MB / 449.8 MB, free: 30.4 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.856e-05/0.3179, allocations: 33.55 kB / 449.8 MB, free: 30.4 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.367e-05/0.318, allocations: 44.47 kB / 449.9 MB, free: 30.4 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008221/0.3188, allocations: 0.5099 MB / 450.4 MB, free: 30.36 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.692e-05/0.3188, allocations: 3.938 kB / 450.4 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.148e-05/0.3189, allocations: 20.09 kB / 450.4 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.593e-05/0.3189, allocations: 19.8 kB / 450.4 MB, free: 30.35 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007974/0.3197, allocations: 476.8 kB / 450.9 MB, free: 30.34 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002866/0.3225, allocations: 2.086 MB / 453 MB, free: 29.74 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008456/0.3234, allocations: 0.6495 MB / 453.6 MB, free: 29.33 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006631/0.3241, allocations: 470 kB / 454.1 MB, free: 29.13 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007085/0.3311, allocations: 6.529 MB / 460.6 MB, free: 23.36 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000558/0.3317, allocations: 293.4 kB / 460.9 MB, free: 23.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.575e-06/0.3317, allocations: 0 / 460.9 MB, free: 23.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.003343/0.335, allocations: 1.98 MB / 462.9 MB, free: 22.19 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.061e-05/0.3351, allocations: 62.02 kB / 462.9 MB, free: 22.12 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001412/0.3365, allocations: 1.296 MB / 464.2 MB, free: 21.64 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.3365, allocations: 36.45 kB / 464.3 MB, free: 21.61 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004143/0.3369, allocations: 0.7218 MB / 465 MB, free: 21.02 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001066/0.337, allocations: 211.5 kB / 465.2 MB, free: 20.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001545/0.3372, allocations: 123.8 kB / 465.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.703e-05/0.3373, allocations: 337.6 kB / 465.6 MB, free: 20.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003778/0.3376, allocations: 196.7 kB / 465.8 MB, free: 20.41 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004315/0.3381, allocations: 363.7 kB / 466.2 MB, free: 20.15 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008271/0.3389, allocations: 0.5972 MB / 466.8 MB, free: 19.77 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.566e-06/0.3389, allocations: 2.281 kB / 466.8 MB, free: 19.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001429/0.3403, allocations: 0.9166 MB / 467.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.906e-05/0.3403, allocations: 6.688 kB / 467.7 MB, free: 19.39 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.434e-05/0.3404, allocations: 62.16 kB / 467.8 MB, free: 19.38 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003895/0.3408, allocations: 157.7 kB / 467.9 MB, free: 19.34 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004224/0.3412, allocations: 115.8 kB / 468 MB, free: 19.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002232/0.3435, allocations: 2.52 MB / 470.6 MB, free: 17.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004816/0.344, allocations: 27.89 kB / 470.6 MB, free: 17.29 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.867e-05/0.344, allocations: 32.94 kB / 470.6 MB, free: 17.29 MB / 366.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.0003483/0.3444, allocations: 267.3 kB / 470.9 MB, free: 17.08 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001453/0.3445, allocations: 189.2 kB / 471.1 MB, free: 16.98 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00158/0.3461, allocations: 0.8853 MB / 472 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.975e-06/0.3461, allocations: 15.48 kB / 472 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.3461, allocations: 3.5 kB / 472 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.3461, allocations: 2.438 kB / 472 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001002/0.3471, allocations: 0.8642 MB / 472.8 MB, free: 16.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.511e-05/0.3472, allocations: 55.59 kB / 472.9 MB, free: 16.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003/0.3475, allocations: 62.14 kB / 473 MB, free: 16.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003538/0.3478, allocations: 156.8 kB / 473.1 MB, free: 16.08 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.91e-05/0.3479, allocations: 20.72 kB / 473.1 MB, free: 16.07 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002141/0.35, allocations: 2.498 MB / 475.6 MB, free: 14.06 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.35, allocations: 3.938 kB / 475.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001762/0.3518, allocations: 1.07 MB / 476.7 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003496/0.3521, allocations: 253.5 kB / 476.9 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.3523, allocations: 15.56 kB / 477 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003496/0.3526, allocations: 17.28 kB / 477 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001155/0.3527, allocations: 47.12 kB / 477 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.337e-05/0.3528, allocations: 23.41 kB / 477 MB, free: 13.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0009835/0.3538, allocations: 0.8648 MB / 477.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3538, allocations: 0 / 477.9 MB, free: 12.96 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009734/0.3547, allocations: 381.8 kB / 478.3 MB, free: 12.89 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.002341/0.3571, allocations: 1.973 MB / 480.3 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001435/0.3585, allocations: 0.8069 MB / 481.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.3585, allocations: 0.9375 kB / 481.1 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008038/0.3593, allocations: 0.5466 MB / 481.6 MB, free: 10.83 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007472/0.3601, allocations: 210.7 kB / 481.8 MB, free: 10.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009849/0.3699, allocations: 9.312 MB / 491.1 MB, free: 3.543 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004021/0.3703, allocations: 1.166 MB / 492.3 MB, free: 2.344 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004226/0.3707, allocations: 187.8 kB / 492.5 MB, free: 2.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004142/0.3711, allocations: 0.5696 MB / 493 MB, free: 1.59 MB / 366.1 MB Notification: Performance of SimCode: time 1.152e-06/0.3711, allocations: 0 / 493 MB, free: 1.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07488/0.446, allocations: 29.14 MB / 0.5099 GB, free: 4.684 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.37, allocations: 14.08 kB / 0.51 GB, free: 4.672 MB / 398.1 MB " [Timeout remaining time 647] (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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.329010573215783]