Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008793/0.0008793, allocations: 177.4 kB / 16.41 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.217/1.217, allocations: 205.4 MB / 222.5 MB, free: 9.117 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007142/0.0007143, allocations: 90.3 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003014/0.0003014, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1923/0.1926, allocations: 47.58 MB / 374.5 MB, free: 45.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.00439/0.197, allocations: 6.428 MB / 381 MB, free: 40.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00857/0.2056, allocations: 9.497 MB / 390.5 MB, free: 32.61 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009546/0.2066, allocations: 37.97 kB / 390.5 MB, free: 32.59 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001412/0.208, allocations: 0.5421 MB / 391.1 MB, free: 32.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002726/0.2108, allocations: 0.894 MB / 391.9 MB, free: 31.4 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001254/0.212, allocations: 458.8 kB / 392.4 MB, free: 30.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.002494/0.2145, allocations: 2.293 MB / 394.7 MB, free: 28.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000319/0.2149, allocations: 247.2 kB / 394.9 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003124/0.2152, allocations: 409.9 kB / 395.3 MB, free: 27.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003294/0.2155, allocations: 481 kB / 395.8 MB, free: 27.5 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.097e-05/0.2156, allocations: 32 kB / 395.8 MB, free: 27.47 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001231/0.2169, allocations: 0.6323 MB / 396.5 MB, free: 26.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.37e-05/0.2169, allocations: 147 kB / 396.6 MB, free: 26.7 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001618/0.2171, allocations: 316.8 kB / 396.9 MB, free: 26.38 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008352/0.218, allocations: 1.39 MB / 398.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.218, allocations: 0 / 398.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.904e-06/0.218, allocations: 0 / 398.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.275e-05/0.218, allocations: 3.938 kB / 398.3 MB, free: 24.98 MB / 298.7 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.001885/0.2199, allocations: 1.784 MB / 400.1 MB, free: 23.14 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.2199, allocations: 12.03 kB / 400.1 MB, free: 23.12 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001529/0.2201, allocations: 197.7 kB / 400.3 MB, free: 22.93 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00134/0.2214, allocations: 1.264 MB / 401.6 MB, free: 21.62 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.2215, allocations: 33 kB / 401.6 MB, free: 21.59 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.294e-05/0.2216, allocations: 47.98 kB / 401.6 MB, free: 21.54 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007839/0.2223, allocations: 0.5158 MB / 402.2 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.225e-05/0.2224, allocations: 4 kB / 402.2 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.244e-05/0.2224, allocations: 12 kB / 402.2 MB, free: 21.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.37e-05/0.2224, allocations: 19.98 kB / 402.2 MB, free: 20.99 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007862/0.2232, allocations: 500 kB / 402.7 MB, free: 20.5 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002408/0.2256, allocations: 2.1 MB / 404.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008114/0.2265, allocations: 0.7296 MB / 405.5 MB, free: 17.54 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005945/0.2271, allocations: 0.5218 MB / 406 MB, free: 17.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005819/0.2329, allocations: 6.529 MB / 412.6 MB, free: 9.504 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000504/0.2335, allocations: 310.5 kB / 412.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of pre-optimization done (n=55): time 2.575e-06/0.2335, allocations: 0 / 412.9 MB, free: 9.188 MB / 298.7 MB Notification: Performance of matching and sorting (n=59): time 0.002986/0.2365, allocations: 2.007 MB / 414.9 MB, free: 7.117 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.641e-05/0.2365, allocations: 63.83 kB / 414.9 MB, free: 7.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001055/0.2376, allocations: 1.28 MB / 416.2 MB, free: 5.766 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.145e-05/0.2376, allocations: 37.64 kB / 416.2 MB, free: 5.723 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003686/0.238, allocations: 0.7112 MB / 417 MB, free: 5.008 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.232e-05/0.2381, allocations: 201.1 kB / 417.2 MB, free: 4.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.457e-05/0.2381, allocations: 8 kB / 417.2 MB, free: 4.801 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.645e-05/0.2382, allocations: 338 kB / 417.5 MB, free: 4.465 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003484/0.2385, allocations: 201.6 kB / 417.7 MB, free: 4.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003909/0.2389, allocations: 376.9 kB / 418.1 MB, free: 3.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003946/0.2393, allocations: 258.8 kB / 418.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.394e-06/0.2393, allocations: 0 / 418.3 MB, free: 3.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001252/0.2406, allocations: 0.9342 MB / 419.2 MB, free: 2.645 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.2406, allocations: 4 kB / 419.2 MB, free: 2.641 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-05/0.2407, allocations: 59.98 kB / 419.3 MB, free: 2.582 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003523/0.241, allocations: 153.9 kB / 419.5 MB, free: 2.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004082/0.2414, allocations: 123.8 kB / 419.6 MB, free: 2.309 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002027/0.2435, allocations: 2.298 MB / 421.9 MB, free: 15.88 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004983/0.244, allocations: 39.98 kB / 421.9 MB, free: 15.84 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.581e-05/0.2441, allocations: 32 kB / 421.9 MB, free: 15.8 MB / 314.7 MB Warning: Assuming fixed start value for the following 2 variables: T2.vbx:VARIABLE(unit = "V" fixed = true ) type: Real T1.vbx:VARIABLE(unit = "V" fixed = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 22 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.v.counter,v.counter,$whenCondition1,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004976/0.2446, allocations: 277.6 kB / 422.2 MB, free: 15.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001842/0.2448, allocations: 181.8 kB / 422.4 MB, free: 15.34 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.2466, allocations: 0.9098 MB / 423.3 MB, free: 14.42 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.017e-05/0.2466, allocations: 11.98 kB / 423.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2466, allocations: 0 / 423.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.2466, allocations: 0 / 423.3 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009219/0.2476, allocations: 0.8787 MB / 424.2 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.228e-05/0.2476, allocations: 52 kB / 424.2 MB, free: 13.43 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003274/0.248, allocations: 67.89 kB / 424.3 MB, free: 13.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003594/0.2483, allocations: 149.6 kB / 424.5 MB, free: 13.21 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.985e-05/0.2484, allocations: 20 kB / 424.5 MB, free: 13.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002344/0.2507, allocations: 2.283 MB / 426.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.2508, allocations: 3.953 kB / 426.8 MB, free: 10.78 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001815/0.2526, allocations: 1.088 MB / 427.9 MB, free: 9.668 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003087/0.2529, allocations: 254.9 kB / 428.1 MB, free: 9.398 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001178/0.253, allocations: 12 kB / 428.1 MB, free: 9.387 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003506/0.2534, allocations: 19.98 kB / 428.1 MB, free: 9.367 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.2535, allocations: 52.38 kB / 428.2 MB, free: 9.316 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.213e-05/0.2535, allocations: 19.98 kB / 428.2 MB, free: 9.297 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009841/0.2545, allocations: 0.8421 MB / 429 MB, free: 8.465 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2545, allocations: 0 / 429 MB, free: 8.465 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0008381/0.2554, allocations: 375.8 kB / 429.4 MB, free: 8.098 MB / 314.7 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(4,81.2%) 14} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000627/0.256, allocations: 432.2 kB / 429.8 MB, free: 7.664 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001494/0.2575, allocations: 0.8562 MB / 430.7 MB, free: 6.781 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.2575, allocations: 4.188 kB / 430.7 MB, free: 6.777 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008874/0.2584, allocations: 0.5942 MB / 431.3 MB, free: 6.156 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006658/0.2591, allocations: 178.3 kB / 431.5 MB, free: 5.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/0.2625, allocations: 2.796 MB / 434.3 MB, free: 3.148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006343/0.2632, allocations: 1.174 MB / 435.4 MB, free: 1.945 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001544/0.2633, allocations: 83.44 kB / 435.5 MB, free: 1.863 MB / 314.7 MB Notification: Performance of SimCode: time 1.212e-06/0.2633, allocations: 4 kB / 435.5 MB, free: 1.859 MB / 314.7 MB Notification: Performance of Templates: time 0.02879/0.2921, allocations: 23.8 MB / 459.3 MB, free: 10.03 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches