Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001889/0.001889, allocations: 122.7 kB / 18.5 MB, free: 4.578 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002175/0.002175, allocations: 210.5 kB / 21.46 MB, free: 1.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 230.2 MB / 254.5 MB, free: 15.27 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001855/0.001855, allocations: 59.91 kB / 373.3 MB, free: 10.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1074/0.1093, allocations: 53.32 MB / 426.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.2128/0.3221, allocations: 7.525 MB / 434.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01072/0.3328, allocations: 10.78 MB / 445 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001225/0.334, allocations: 77.88 kB / 445 MB, free: 0.8047 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001893/0.3359, allocations: 0.7132 MB / 445.8 MB, free: 428 kB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004768/0.3407, allocations: 1.198 MB / 446.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002148/0.3428, allocations: 0.6781 MB / 447.6 MB, free: 15.36 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004568/0.3474, allocations: 2.566 MB / 450.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004369/0.3478, allocations: 180.2 kB / 450.4 MB, free: 14.27 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009746/0.3488, allocations: 0.4968 MB / 450.9 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007415/0.3495, allocations: 0.5283 MB / 451.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001124/0.3496, allocations: 58.52 kB / 451.5 MB, free: 13.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00222/0.3519, allocations: 0.7729 MB / 452.2 MB, free: 13.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.3521, allocations: 191.6 kB / 452.4 MB, free: 13.41 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007094/0.3528, allocations: 0.6751 MB / 453.1 MB, free: 12.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002896/0.3557, allocations: 1.955 MB / 455 MB, free: 12.13 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3557, allocations: 0 / 455 MB, free: 12.13 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3557, allocations: 0 / 455 MB, free: 12.13 MB / 366.1 MB Notification: Performance of Transformations before backend: time 3.024e-05/0.3557, allocations: 5.703 kB / 455 MB, free: 12.13 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.003558/0.3593, allocations: 2.044 MB / 457.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.151e-05/0.3593, allocations: 9.625 kB / 457.1 MB, free: 10.72 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.3594, allocations: 87.81 kB / 457.2 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002759/0.3597, allocations: 207.7 kB / 457.4 MB, free: 10.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002277/0.362, allocations: 1.358 MB / 458.7 MB, free: 9.797 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.177e-05/0.362, allocations: 38.44 kB / 458.8 MB, free: 9.781 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.896e-05/0.3621, allocations: 41.78 kB / 458.8 MB, free: 9.77 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009308/0.363, allocations: 0.5146 MB / 459.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.363, allocations: 0 / 459.3 MB, free: 9.559 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.838e-05/0.3631, allocations: 17.59 kB / 459.4 MB, free: 9.547 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.845e-05/0.3631, allocations: 17.12 kB / 459.4 MB, free: 9.543 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009648/0.3641, allocations: 477.7 kB / 459.8 MB, free: 9.383 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003542/0.3676, allocations: 2.101 MB / 461.9 MB, free: 8.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.3687, allocations: 0.6577 MB / 462.6 MB, free: 7.535 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007627/0.3695, allocations: 466.4 kB / 463.1 MB, free: 7.289 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006968/0.3764, allocations: 4.912 MB / 468 MB, free: 2.715 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000618/0.3771, allocations: 315.9 kB / 468.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.506e-06/0.3771, allocations: 0 / 468.3 MB, free: 2.52 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005577/0.3826, allocations: 2.414 MB / 470.7 MB, free: 1.055 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.665e-05/0.3827, allocations: 62.92 kB / 470.8 MB, free: 0.9883 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001811/0.3845, allocations: 1.288 MB / 472 MB, free: 308 kB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 6.375e-05/0.3846, allocations: 36.52 kB / 472.1 MB, free: 268 kB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006909/0.3853, allocations: 0.7067 MB / 472.8 MB, free: 15.63 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002058/0.3855, allocations: 228.6 kB / 473 MB, free: 15.43 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002163/0.3857, allocations: 122.4 kB / 473.1 MB, free: 15.36 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002123/0.3859, allocations: 332.5 kB / 473.4 MB, free: 15.04 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004397/0.3863, allocations: 219 kB / 473.7 MB, free: 14.93 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005412/0.3869, allocations: 363 kB / 474 MB, free: 14.64 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001012/0.3879, allocations: 0.6127 MB / 474.6 MB, free: 14.23 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.181e-06/0.3879, allocations: 10.94 kB / 474.6 MB, free: 14.22 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001746/0.3896, allocations: 0.9569 MB / 475.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.119e-05/0.3897, allocations: 7.938 kB / 475.6 MB, free: 13.72 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.417e-05/0.3898, allocations: 73.2 kB / 475.7 MB, free: 13.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005056/0.3903, allocations: 187.1 kB / 475.9 MB, free: 13.62 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004554/0.3907, allocations: 107.5 kB / 476 MB, free: 13.6 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003448/0.3942, allocations: 2.758 MB / 478.7 MB, free: 11.3 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006379/0.3948, allocations: 30.66 kB / 478.8 MB, free: 11.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.284e-05/0.3949, allocations: 30.25 kB / 478.8 MB, free: 11.28 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.0004824/0.3954, allocations: 274.5 kB / 479 MB, free: 11.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002288/0.3956, allocations: 190.8 kB / 479.2 MB, free: 10.97 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001942/0.3975, allocations: 0.9614 MB / 480.2 MB, free: 10.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.286e-05/0.3975, allocations: 8 kB / 480.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.3975, allocations: 4.875 kB / 480.2 MB, free: 10.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.3975, allocations: 3.984 kB / 480.2 MB, free: 10.26 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001273/0.3988, allocations: 0.9021 MB / 481.1 MB, free: 9.309 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001017/0.3989, allocations: 60 kB / 481.2 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003159/0.3992, allocations: 67.89 kB / 481.2 MB, free: 9.184 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004464/0.3997, allocations: 172.4 kB / 481.4 MB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.67e-05/0.3997, allocations: 28.67 kB / 481.4 MB, free: 8.988 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003443/0.4032, allocations: 2.754 MB / 484.2 MB, free: 6.098 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.506e-06/0.4032, allocations: 3.938 kB / 484.2 MB, free: 6.094 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002189/0.4054, allocations: 1.19 MB / 485.4 MB, free: 4.887 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005236/0.4059, allocations: 256 kB / 485.6 MB, free: 4.617 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001585/0.4061, allocations: 19.88 kB / 485.7 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003576/0.4064, allocations: 27.97 kB / 485.7 MB, free: 4.57 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001285/0.4065, allocations: 48.38 kB / 485.7 MB, free: 4.523 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.869e-05/0.4066, allocations: 20 kB / 485.7 MB, free: 4.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001213/0.4078, allocations: 0.8574 MB / 486.6 MB, free: 3.656 MB / 382.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4078, allocations: 0 / 486.6 MB, free: 3.656 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001052/0.4089, allocations: 391.2 kB / 487 MB, free: 3.273 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.003188/0.412, allocations: 2.082 MB / 489.1 MB, free: 1.16 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001831/0.4139, allocations: 0.8743 MB / 489.9 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.4139, allocations: 0 / 489.9 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001108/0.415, allocations: 0.6119 MB / 490.6 MB, free: 15.62 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001023/0.416, allocations: 215.8 kB / 490.8 MB, free: 15.42 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01437/0.4304, allocations: 9.442 MB / 0.4885 GB, free: 5.688 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009734/0.4314, allocations: 1.174 MB / 0.4896 GB, free: 4.48 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005491/0.4319, allocations: 183.2 kB / 0.4898 GB, free: 4.297 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006969/0.4326, allocations: 0.5695 MB / 0.4904 GB, free: 3.727 MB / 398.1 MB Notification: Performance of SimCode: time 1.152e-06/0.4326, allocations: 0 / 0.4904 GB, free: 3.727 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08524/0.5178, allocations: 29.91 MB / 0.5196 GB, free: 5.902 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.71/14.23, allocations: 12 kB / 0.5196 GB, free: 5.895 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator_fmu --startTime=0 --stopTime=0.025 --stepSize=4.998e-06 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 17.352034411858767]