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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001413/0.001413, allocations: 109.2 kB / 17.73 MB, free: 5.316 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.001634/0.001634, allocations: 188.2 kB / 18.66 MB, free: 4.387 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.311/1.311, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001263/0.001263, allocations: 51.92 kB / 328 MB, free: 3.816 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08145/0.08273, allocations: 46.62 MB / 374.6 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.1696/0.2523, allocations: 7.347 MB / 382 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01011/0.2625, allocations: 10.39 MB / 392.4 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.2636, allocations: 77.75 kB / 392.4 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001747/0.2655, allocations: 0.6998 MB / 393.1 MB, free: 2.113 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003615/0.2691, allocations: 1.174 MB / 394.3 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001952/0.2711, allocations: 0.6702 MB / 395 MB, free: 1.074 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.003608/0.2747, allocations: 2.488 MB / 397.5 MB, free: 116 kB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004452/0.2752, allocations: 287.4 kB / 397.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007029/0.2759, allocations: 478.4 kB / 398.2 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006203/0.2765, allocations: 0.5289 MB / 398.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001073/0.2766, allocations: 54.16 kB / 398.8 MB, free: 15.48 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001914/0.2786, allocations: 0.6973 MB / 399.5 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001935/0.2788, allocations: 179.6 kB / 399.7 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000703/0.2795, allocations: 0.6792 MB / 400.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.2822, allocations: 1.951 MB / 402.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.2822, allocations: 1.25 kB / 402.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.744e-06/0.2822, allocations: 0 / 402.3 MB, free: 13.91 MB / 334.1 MB Notification: Performance of Transformations before backend: time 3.157e-05/0.2823, allocations: 0 / 402.3 MB, free: 13.91 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.003442/0.2857, allocations: 2.04 MB / 404.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2858, allocations: 9.625 kB / 404.4 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001162/0.2859, allocations: 96.14 kB / 404.5 MB, free: 12.44 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002602/0.2862, allocations: 207.1 kB / 404.7 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002109/0.2883, allocations: 1.354 MB / 406 MB, free: 11.59 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.44e-05/0.2883, allocations: 33.75 kB / 406 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001147/0.2885, allocations: 49.88 kB / 406.1 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001021/0.2895, allocations: 0.5131 MB / 406.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.469e-05/0.2895, allocations: 0 / 406.6 MB, free: 11.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.273e-05/0.2896, allocations: 23 kB / 406.6 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.13e-05/0.2896, allocations: 18.92 kB / 406.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009333/0.2905, allocations: 471.1 kB / 407.1 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003351/0.2939, allocations: 2.101 MB / 409.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001002/0.2949, allocations: 0.6943 MB / 409.9 MB, free: 9.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007471/0.2957, allocations: 0.5204 MB / 410.4 MB, free: 8.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008302/0.304, allocations: 6.506 MB / 416.9 MB, free: 2.375 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005668/0.3046, allocations: 287.9 kB / 417.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=55): time 3.217e-06/0.3046, allocations: 4 kB / 417.2 MB, free: 2.191 MB / 334.1 MB Notification: Performance of matching and sorting (n=59): time 0.003831/0.3085, allocations: 1.999 MB / 419.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.407e-05/0.3086, allocations: 61.77 kB / 419.3 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.3102, allocations: 1.294 MB / 420.6 MB, free: 228 kB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 6.335e-05/0.3103, allocations: 32.8 kB / 420.6 MB, free: 192 kB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006528/0.3109, allocations: 0.7209 MB / 421.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001798/0.3111, allocations: 209.1 kB / 421.5 MB, free: 15.36 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001969/0.3113, allocations: 123.1 kB / 421.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001272/0.3115, allocations: 336 kB / 422 MB, free: 14.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004369/0.3119, allocations: 195.5 kB / 422.2 MB, free: 14.87 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005302/0.3124, allocations: 361.9 kB / 422.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002223/0.3147, allocations: 1.131 MB / 423.6 MB, free: 13.31 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3147, allocations: 7.938 kB / 423.7 MB, free: 13.3 MB / 350.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001728/0.3164, allocations: 0.9235 MB / 424.6 MB, free: 12.37 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.03e-05/0.3165, allocations: 12.06 kB / 424.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.849e-05/0.3166, allocations: 56 kB / 424.6 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004118/0.317, allocations: 160 kB / 424.8 MB, free: 12.14 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004851/0.3175, allocations: 115.8 kB / 424.9 MB, free: 12.03 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002844/0.3203, allocations: 2.514 MB / 427.4 MB, free: 9.383 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006939/0.3211, allocations: 27.97 kB / 427.5 MB, free: 9.355 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.649e-05/0.3211, allocations: 36 kB / 427.5 MB, free: 9.32 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.0005329/0.3217, allocations: 277.6 kB / 427.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002654/0.322, allocations: 194.8 kB / 427.9 MB, free: 8.848 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001789/0.3238, allocations: 0.8888 MB / 428.8 MB, free: 7.949 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.518e-06/0.3238, allocations: 4 kB / 428.8 MB, free: 7.945 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.3238, allocations: 4 kB / 428.8 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.3238, allocations: 3.984 kB / 428.8 MB, free: 7.938 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001261/0.3251, allocations: 0.8795 MB / 429.7 MB, free: 7.012 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.938e-05/0.3252, allocations: 48 kB / 429.8 MB, free: 6.965 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003253/0.3255, allocations: 67.89 kB / 429.8 MB, free: 6.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003753/0.3259, allocations: 145.8 kB / 430 MB, free: 6.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.624e-05/0.3259, allocations: 16 kB / 430 MB, free: 6.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002684/0.3286, allocations: 2.498 MB / 432.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3287, allocations: 0 / 432.5 MB, free: 4.105 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002035/0.3307, allocations: 1.085 MB / 433.6 MB, free: 2.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00051/0.3312, allocations: 255.9 kB / 433.8 MB, free: 2.723 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001733/0.3314, allocations: 12 kB / 433.8 MB, free: 2.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000382/0.3318, allocations: 15.98 kB / 433.9 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001275/0.3319, allocations: 52.38 kB / 433.9 MB, free: 2.645 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.774e-05/0.332, allocations: 28 kB / 433.9 MB, free: 2.617 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.00112/0.3331, allocations: 0.8577 MB / 434.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3332, allocations: 0 / 434.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3343, allocations: 387.2 kB / 435.2 MB, free: 1.391 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.00299/0.3373, allocations: 1.981 MB / 437.2 MB, free: 15.37 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001674/0.339, allocations: 0.8483 MB / 438 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.339, allocations: 4.062 kB / 438 MB, free: 14.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.3401, allocations: 0.5824 MB / 438.6 MB, free: 13.89 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009693/0.341, allocations: 179.8 kB / 438.8 MB, free: 13.71 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01413/0.3552, allocations: 9.302 MB / 448.1 MB, free: 4.082 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007718/0.356, allocations: 1.166 MB / 449.2 MB, free: 2.883 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005441/0.3566, allocations: 187.2 kB / 449.4 MB, free: 2.695 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006199/0.3572, allocations: 0.5735 MB / 450 MB, free: 2.125 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3572, allocations: 0 / 450 MB, free: 2.125 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06021/0.4174, allocations: 28.92 MB / 478.9 MB, free: 5.113 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.9/13.31, allocations: 4.062 kB / 478.9 MB, free: 5.109 MB / 398.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv --start-time 0 --stop-time 0.025 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/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