Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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 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: translateModel(Modelica.Electrical.Spice3.Examples.Oscillator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|T1.vbe|T2.vbe",fileNamePrefix="Modelica_3.2.3_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_Modelica.Electrical.Spice3.Examples.Oscillator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001674/0.001675, allocations: 109.3 kB / 18.4 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001902, allocations: 187.1 kB / 19.33 MB, free: 3.781 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.374/1.374, allocations: 205.1 MB / 225.2 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 55.86 kB / 329.2 MB, free: 3.316 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.09852, allocations: 46.62 MB / 375.8 MB, free: 4.586 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.2055/0.3041, allocations: 7.345 MB / 383.2 MB, free: 9.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01204/0.3162, allocations: 10.38 MB / 393.5 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001468/0.3177, allocations: 77.16 kB / 393.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002181/0.3199, allocations: 0.6945 MB / 394.3 MB, free: 2.047 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005524/0.3255, allocations: 1.186 MB / 395.5 MB, free: 1.305 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002933/0.3284, allocations: 0.663 MB / 396.2 MB, free: 1 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00492/0.3334, allocations: 2.484 MB / 398.6 MB, free: 44 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005735/0.334, allocations: 288 kB / 398.9 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009417/0.3349, allocations: 481.7 kB / 399.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006651/0.3356, allocations: 0.5246 MB / 399.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001114/0.3357, allocations: 55.09 kB / 400 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002468/0.3382, allocations: 0.7014 MB / 400.7 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001903/0.3384, allocations: 183.7 kB / 400.9 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006882/0.3391, allocations: 0.6709 MB / 401.5 MB, free: 14.69 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003007/0.3421, allocations: 1.942 MB / 403.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.809e-06/0.3421, allocations: 0.7031 kB / 403.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3421, allocations: 4 kB / 403.5 MB, free: 13.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 2.601e-05/0.3422, allocations: 0 / 403.5 MB, free: 13.86 MB / 334.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.003422/0.3456, allocations: 1.975 MB / 405.4 MB, free: 12.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.549e-05/0.3456, allocations: 10.59 kB / 405.5 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002708/0.3459, allocations: 198.4 kB / 405.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002375/0.3483, allocations: 1.339 MB / 407 MB, free: 11.69 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.231e-05/0.3484, allocations: 35.62 kB / 407 MB, free: 11.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000116/0.3485, allocations: 44.88 kB / 407.1 MB, free: 11.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001053/0.3495, allocations: 0.5192 MB / 407.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.449e-05/0.3496, allocations: 1 kB / 407.6 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.144e-05/0.3496, allocations: 15.31 kB / 407.6 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.169e-05/0.3496, allocations: 19.73 kB / 407.6 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009514/0.3506, allocations: 472.2 kB / 408.1 MB, free: 11.14 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00343/0.354, allocations: 2.099 MB / 410.2 MB, free: 9.582 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001073/0.3551, allocations: 0.7023 MB / 410.9 MB, free: 9.07 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007861/0.3559, allocations: 0.5137 MB / 411.4 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008716/0.3647, allocations: 6.499 MB / 417.9 MB, free: 2.453 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005976/0.3653, allocations: 297.3 kB / 418.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 2.886e-06/0.3653, allocations: 0 / 418.2 MB, free: 2.266 MB / 334.1 MB Notification: Performance of matching and sorting (n=59): time 0.004155/0.3695, allocations: 1.968 MB / 420.2 MB, free: 1.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.448e-05/0.3696, allocations: 56.94 kB / 420.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001743/0.3713, allocations: 1.294 MB / 421.5 MB, free: 336 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.849e-05/0.3714, allocations: 32.45 kB / 421.5 MB, free: 300 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006142/0.372, allocations: 0.7162 MB / 422.3 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000167/0.3722, allocations: 197 kB / 422.4 MB, free: 15.48 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001858/0.3724, allocations: 126 kB / 422.6 MB, free: 15.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001343/0.3725, allocations: 332.2 kB / 422.9 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004188/0.3729, allocations: 196.7 kB / 423.1 MB, free: 14.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005147/0.3734, allocations: 363.8 kB / 423.4 MB, free: 14.47 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002225/0.3757, allocations: 1.139 MB / 424.6 MB, free: 13.26 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3757, allocations: 6.562 kB / 424.6 MB, free: 13.25 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001674/0.3774, allocations: 0.9147 MB / 425.5 MB, free: 12.33 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.923e-05/0.3774, allocations: 8 kB / 425.5 MB, free: 12.32 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001627/0.3776, allocations: 60 kB / 425.6 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000401/0.378, allocations: 165.3 kB / 425.7 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000448/0.3784, allocations: 107.9 kB / 425.8 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002858/0.3813, allocations: 2.517 MB / 428.4 MB, free: 9.34 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006819/0.382, allocations: 27.98 kB / 428.4 MB, free: 9.312 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.619e-05/0.3821, allocations: 35.94 kB / 428.4 MB, free: 9.277 MB / 350.1 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 (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.0005449/0.3826, allocations: 273.7 kB / 428.7 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002086/0.3829, allocations: 181.8 kB / 428.9 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001773/0.3846, allocations: 0.8959 MB / 429.8 MB, free: 7.918 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.3846, allocations: 4 kB / 429.8 MB, free: 7.914 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.3847, allocations: 4 kB / 429.8 MB, free: 7.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.3847, allocations: 3.984 kB / 429.8 MB, free: 7.906 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001172/0.3858, allocations: 0.8708 MB / 430.6 MB, free: 6.988 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.381e-05/0.3859, allocations: 56 kB / 430.7 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003062/0.3863, allocations: 63.89 kB / 430.8 MB, free: 6.871 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003546/0.3866, allocations: 145 kB / 430.9 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.013e-05/0.3867, allocations: 20 kB / 430.9 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002767/0.3894, allocations: 2.487 MB / 433.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3895, allocations: 0 / 433.4 MB, free: 4.082 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001945/0.3914, allocations: 1.072 MB / 434.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004357/0.3919, allocations: 250.9 kB / 434.7 MB, free: 2.715 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001407/0.392, allocations: 12 kB / 434.7 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003708/0.3924, allocations: 23.98 kB / 434.8 MB, free: 2.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001287/0.3925, allocations: 48.56 kB / 434.8 MB, free: 2.633 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.852e-05/0.3926, allocations: 25.11 kB / 434.8 MB, free: 2.609 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001174/0.3938, allocations: 0.8578 MB / 435.7 MB, free: 1.762 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3938, allocations: 3.938 kB / 435.7 MB, free: 1.758 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001167/0.3949, allocations: 371.8 kB / 436.1 MB, free: 1.395 MB / 350.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.0008598/0.3958, allocations: 467.9 kB / 436.5 MB, free: 0.9258 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001679/0.3975, allocations: 0.8442 MB / 437.4 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3975, allocations: 0 / 437.4 MB, free: 56 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.3985, allocations: 0.5826 MB / 437.9 MB, free: 15.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008436/0.3994, allocations: 181.6 kB / 438.1 MB, free: 15.27 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003857/0.4033, allocations: 2.43 MB / 440.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007023/0.404, allocations: 1.174 MB / 441.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001584/0.4042, allocations: 83.44 kB / 441.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of SimCode: time 8.82e-07/0.4042, allocations: 4 kB / 441.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of Templates: time 0.03228/0.4364, allocations: 24.12 MB / 465.9 MB, free: 3.363 MB / 382.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.sim & ./Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches