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.001815/0.001815, allocations: 114 kB / 20.43 MB, free: 1.457 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.00244/0.00244, allocations: 214.6 kB / 23.74 MB, free: 4.672 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.529/1.529, allocations: 230.5 MB / 257.4 MB, free: 7.98 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.002103/0.002103, allocations: 63.91 kB / 377.8 MB, free: 2.996 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.251/0.2531, allocations: 53.41 MB / 431.2 MB, free: 6.664 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008713/0.2618, allocations: 7.558 MB / 438.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01415/0.276, allocations: 10.79 MB / 449.5 MB, free: 4.238 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001328/0.2773, allocations: 122.6 kB / 449.6 MB, free: 4.117 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00213/0.2794, allocations: 0.7129 MB / 450.4 MB, free: 3.402 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004206/0.2837, allocations: 1.202 MB / 451.6 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002332/0.286, allocations: 0.6801 MB / 452.2 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00457/0.2906, allocations: 2.582 MB / 454.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004579/0.291, allocations: 180.3 kB / 455 MB, free: 14.72 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000831/0.2918, allocations: 0.5132 MB / 455.5 MB, free: 14.21 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008819/0.2927, allocations: 0.5356 MB / 456 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001703/0.2929, allocations: 56 kB / 456.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002115/0.295, allocations: 0.7766 MB / 456.9 MB, free: 12.84 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002343/0.2952, allocations: 186.8 kB / 457.1 MB, free: 12.65 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000842/0.2961, allocations: 0.6676 MB / 457.7 MB, free: 11.98 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002939/0.299, allocations: 1.968 MB / 459.7 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.299, allocations: 0 / 459.7 MB, free: 10 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.299, allocations: 0 / 459.7 MB, free: 10 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.082e-05/0.2991, allocations: 0 / 459.7 MB, free: 10 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.00349/0.3026, allocations: 1.963 MB / 461.7 MB, free: 8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.622e-05/0.3026, allocations: 12.03 kB / 461.7 MB, free: 7.988 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001354/0.3028, allocations: 90.7 kB / 461.8 MB, free: 7.891 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002913/0.3031, allocations: 211.7 kB / 462 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002305/0.3054, allocations: 1.244 MB / 463.2 MB, free: 6.383 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.583e-05/0.3054, allocations: 29 kB / 463.2 MB, free: 6.352 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.606e-05/0.3055, allocations: 44 kB / 463.3 MB, free: 6.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009736/0.3065, allocations: 0.5197 MB / 463.8 MB, free: 5.785 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.3065, allocations: 4 kB / 463.8 MB, free: 5.781 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.52e-05/0.3065, allocations: 19.94 kB / 463.8 MB, free: 5.762 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.135e-05/0.3065, allocations: 20 kB / 463.8 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009435/0.3075, allocations: 472.1 kB / 464.3 MB, free: 5.281 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003406/0.3109, allocations: 2.058 MB / 466.4 MB, free: 3.145 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009314/0.3118, allocations: 0.5062 MB / 466.9 MB, free: 2.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007504/0.3126, allocations: 469.3 kB / 467.3 MB, free: 2.172 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005227/0.3178, allocations: 2.342 MB / 469.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006388/0.3184, allocations: 313.6 kB / 470 MB, free: 15.48 MB / 382.1 MB Notification: Performance of pre-optimization done (n=61): time 3.036e-06/0.3184, allocations: 0 / 470 MB, free: 15.48 MB / 382.1 MB Notification: Performance of matching and sorting (n=65): time 0.005075/0.3235, allocations: 2.27 MB / 472.2 MB, free: 13.18 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.487e-05/0.3236, allocations: 67.78 kB / 472.3 MB, free: 13.1 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001759/0.3253, allocations: 1.284 MB / 473.6 MB, free: 11.82 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.654e-05/0.3254, allocations: 41.69 kB / 473.6 MB, free: 11.77 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006564/0.326, allocations: 0.6963 MB / 474.3 MB, free: 11.07 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002111/0.3263, allocations: 234 kB / 474.6 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001948/0.3265, allocations: 118.3 kB / 474.7 MB, free: 10.71 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001474/0.3266, allocations: 334 kB / 475 MB, free: 10.38 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004698/0.3271, allocations: 217.5 kB / 475.2 MB, free: 10.17 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005759/0.3276, allocations: 364.4 kB / 475.6 MB, free: 9.758 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00107/0.3287, allocations: 0.6163 MB / 476.2 MB, free: 9.09 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.837e-06/0.3287, allocations: 7.938 kB / 476.2 MB, free: 9.082 MB / 382.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.00183/0.3306, allocations: 0.9643 MB / 477.2 MB, free: 8.105 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.3306, allocations: 8 kB / 477.2 MB, free: 8.098 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001006/0.3307, allocations: 64 kB / 477.2 MB, free: 8.035 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005044/0.3312, allocations: 184.7 kB / 477.4 MB, free: 7.852 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004317/0.3316, allocations: 99.88 kB / 477.5 MB, free: 7.754 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003524/0.3351, allocations: 2.658 MB / 480.2 MB, free: 4.988 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000544/0.3357, allocations: 28.03 kB / 480.2 MB, free: 4.961 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.465e-05/0.3358, allocations: 35.98 kB / 480.2 MB, free: 4.926 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.0005/0.3363, allocations: 274.3 kB / 480.5 MB, free: 4.648 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.3365, allocations: 190.8 kB / 480.7 MB, free: 4.461 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002015/0.3386, allocations: 0.9658 MB / 481.6 MB, free: 3.473 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.3386, allocations: 4 kB / 481.7 MB, free: 3.469 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3386, allocations: 4 kB / 481.7 MB, free: 3.465 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.3386, allocations: 7.984 kB / 481.7 MB, free: 3.457 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001116/0.3397, allocations: 0.866 MB / 482.5 MB, free: 2.551 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.834e-05/0.3398, allocations: 67.98 kB / 482.6 MB, free: 2.484 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003209/0.3401, allocations: 59.89 kB / 482.7 MB, free: 2.426 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004505/0.3406, allocations: 176.7 kB / 482.8 MB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.787e-05/0.3406, allocations: 23.92 kB / 482.9 MB, free: 2.227 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003405/0.344, allocations: 2.649 MB / 485.5 MB, free: 15.47 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.248e-06/0.344, allocations: 3.984 kB / 485.5 MB, free: 15.46 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002232/0.3463, allocations: 1.184 MB / 486.7 MB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004061/0.3467, allocations: 186.8 kB / 486.9 MB, free: 14.08 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.3468, allocations: 15.94 kB / 486.9 MB, free: 14.06 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003803/0.3472, allocations: 27.97 kB / 486.9 MB, free: 14.04 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001323/0.3473, allocations: 52.36 kB / 487 MB, free: 13.98 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.029e-05/0.3474, allocations: 19.98 kB / 487 MB, free: 13.96 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.001233/0.3486, allocations: 0.8535 MB / 487.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3486, allocations: 0 / 487.8 MB, free: 13.12 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009699/0.3496, allocations: 395.2 kB / 488.2 MB, free: 12.73 MB / 398.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.003238/0.3528, allocations: 2.082 MB / 490.3 MB, free: 10.61 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001791/0.3546, allocations: 0.8825 MB / 491.2 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3546, allocations: 0 / 491.2 MB, free: 9.707 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001106/0.3557, allocations: 0.612 MB / 491.8 MB, free: 9.066 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001/0.3567, allocations: 210.1 kB / 492 MB, free: 8.859 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0146/0.3713, allocations: 9.442 MB / 0.4897 GB, free: 15.11 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007856/0.3721, allocations: 1.178 MB / 0.4908 GB, free: 13.91 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004715/0.3726, allocations: 183.2 kB / 0.491 GB, free: 13.72 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006273/0.3732, allocations: 0.5657 MB / 0.4916 GB, free: 13.16 MB / 414.1 MB Notification: Performance of SimCode: time 6.91e-07/0.3732, allocations: 0 / 0.4916 GB, free: 13.16 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07699/0.4502, allocations: 30.44 MB / 0.5213 GB, free: 14.84 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.08/15.53, allocations: 10.22 kB / 0.5213 GB, free: 14.84 MB / 446.1 MB " [Timeout remaining time 644] (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/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_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: 18.593178689014167]