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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001377/0.001378, allocations: 117.6 kB / 17.79 MB, free: 5.254 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 199.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.477/1.477, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 63.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2537/0.2555, allocations: 50.54 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.008461/0.264, allocations: 7.514 MB / 416.3 MB, free: 9.969 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.2778, allocations: 10.73 MB / 427 MB, free: 15.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.2792, allocations: 83.25 kB / 427.1 MB, free: 15.11 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001956/0.2812, allocations: 0.7092 MB / 427.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003828/0.2851, allocations: 1.188 MB / 429 MB, free: 13.2 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001986/0.2871, allocations: 0.67 MB / 429.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004052/0.2911, allocations: 2.564 MB / 432.2 MB, free: 9.949 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004983/0.2917, allocations: 279.9 kB / 432.5 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006696/0.2923, allocations: 0.4898 MB / 433 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006445/0.293, allocations: 0.5317 MB / 433.5 MB, free: 8.633 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001096/0.2931, allocations: 56 kB / 433.6 MB, free: 8.578 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001761/0.2949, allocations: 0.7688 MB / 434.3 MB, free: 7.809 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001981/0.2951, allocations: 190.8 kB / 434.5 MB, free: 7.621 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006852/0.2958, allocations: 0.6793 MB / 435.2 MB, free: 6.938 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002604/0.2984, allocations: 1.952 MB / 437.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.757e-06/0.2984, allocations: 0 / 437.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2984, allocations: 0 / 437.1 MB, free: 4.977 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.739e-05/0.2985, allocations: 0 / 437.1 MB, free: 4.977 MB / 350.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.003077/0.3015, allocations: 2.046 MB / 439.2 MB, free: 2.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3016, allocations: 12.03 kB / 439.2 MB, free: 2.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001087/0.3017, allocations: 94.69 kB / 439.3 MB, free: 2.754 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002512/0.302, allocations: 207.7 kB / 439.5 MB, free: 2.551 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002021/0.304, allocations: 1.354 MB / 440.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.558e-05/0.304, allocations: 29 kB / 440.9 MB, free: 1.125 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001091/0.3042, allocations: 47.95 kB / 440.9 MB, free: 1.078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009841/0.3052, allocations: 0.5197 MB / 441.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.282e-05/0.3052, allocations: 0 / 441.4 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.112e-05/0.3052, allocations: 16 kB / 441.5 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.036e-05/0.3053, allocations: 15.98 kB / 441.5 MB, free: 0.5195 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000958/0.3062, allocations: 472.1 kB / 441.9 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003324/0.3096, allocations: 2.112 MB / 444.1 MB, free: 13.86 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.3107, allocations: 0.6998 MB / 444.8 MB, free: 13.11 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008166/0.3115, allocations: 0.5212 MB / 445.3 MB, free: 12.59 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006529/0.318, allocations: 4.908 MB / 450.2 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006492/0.3187, allocations: 314 kB / 450.5 MB, free: 6.703 MB / 366.1 MB Notification: Performance of pre-optimization done (n=61): time 3.377e-06/0.3187, allocations: 4 kB / 450.5 MB, free: 6.699 MB / 366.1 MB Notification: Performance of matching and sorting (n=65): time 0.005298/0.324, allocations: 2.432 MB / 452.9 MB, free: 4.191 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.611e-05/0.3241, allocations: 63.83 kB / 453 MB, free: 4.117 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001683/0.3258, allocations: 1.288 MB / 454.3 MB, free: 2.832 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.405e-05/0.3259, allocations: 29.7 kB / 454.3 MB, free: 2.797 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006767/0.3266, allocations: 0.7041 MB / 455 MB, free: 2.086 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002262/0.3268, allocations: 245.9 kB / 455.2 MB, free: 1.844 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000195/0.327, allocations: 118.3 kB / 455.4 MB, free: 1.723 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001618/0.3272, allocations: 334 kB / 455.7 MB, free: 1.391 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004625/0.3277, allocations: 217.5 kB / 455.9 MB, free: 1.176 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005673/0.3282, allocations: 360.5 kB / 456.3 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001065/0.3293, allocations: 0.6112 MB / 456.9 MB, free: 108 kB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.233e-06/0.3293, allocations: 7.938 kB / 456.9 MB, free: 100 kB / 366.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001876/0.3312, allocations: 0.9745 MB / 457.8 MB, free: 15.11 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.311e-05/0.3312, allocations: 8 kB / 457.9 MB, free: 15.1 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001109/0.3314, allocations: 60 kB / 457.9 MB, free: 15.04 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000511/0.3319, allocations: 185.1 kB / 458.1 MB, free: 14.86 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004462/0.3323, allocations: 103.8 kB / 458.2 MB, free: 14.76 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003634/0.336, allocations: 2.773 MB / 461 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006193/0.3366, allocations: 28.03 kB / 461 MB, free: 11.83 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.536e-05/0.3367, allocations: 28 kB / 461 MB, free: 11.8 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.0005177/0.3372, allocations: 269.7 kB / 461.3 MB, free: 11.53 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002419/0.3375, allocations: 190.8 kB / 461.5 MB, free: 11.34 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.3395, allocations: 0.9681 MB / 462.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.815e-06/0.3395, allocations: 4 kB / 462.4 MB, free: 10.35 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.003e-06/0.3395, allocations: 4 kB / 462.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.253e-06/0.3395, allocations: 3.984 kB / 462.5 MB, free: 10.34 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00121/0.3408, allocations: 0.9137 MB / 463.4 MB, free: 9.375 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001037/0.3409, allocations: 56 kB / 463.4 MB, free: 9.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003268/0.3412, allocations: 71.88 kB / 463.5 MB, free: 9.25 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004593/0.3417, allocations: 168.7 kB / 463.7 MB, free: 9.082 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.91e-05/0.3417, allocations: 23.92 kB / 463.7 MB, free: 9.059 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00349/0.3452, allocations: 2.758 MB / 466.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.522e-06/0.3453, allocations: 0 / 466.4 MB, free: 6.164 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.3476, allocations: 1.19 MB / 467.6 MB, free: 4.953 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004773/0.3481, allocations: 260 kB / 467.9 MB, free: 4.68 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000135/0.3482, allocations: 11.94 kB / 467.9 MB, free: 4.668 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003628/0.3486, allocations: 27.97 kB / 467.9 MB, free: 4.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001495/0.3487, allocations: 44.38 kB / 468 MB, free: 4.598 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.164e-05/0.3488, allocations: 24 kB / 468 MB, free: 4.574 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001194/0.35, allocations: 0.8574 MB / 468.8 MB, free: 3.727 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.35, allocations: 0 / 468.8 MB, free: 3.727 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001/0.351, allocations: 391.2 kB / 469.2 MB, free: 3.344 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.003247/0.3543, allocations: 2.106 MB / 471.3 MB, free: 1.203 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001829/0.3561, allocations: 0.9166 MB / 472.3 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3561, allocations: 0.75 kB / 472.3 MB, free: 268 kB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.3573, allocations: 0.6509 MB / 472.9 MB, free: 15.58 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009265/0.3582, allocations: 217.5 kB / 473.1 MB, free: 15.37 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01436/0.3726, allocations: 9.458 MB / 482.6 MB, free: 5.613 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009089/0.3735, allocations: 1.174 MB / 483.7 MB, free: 4.406 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005387/0.3741, allocations: 191.1 kB / 483.9 MB, free: 4.215 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006975/0.3748, allocations: 0.5657 MB / 484.5 MB, free: 3.648 MB / 398.1 MB Notification: Performance of SimCode: time 9.62e-07/0.3748, allocations: 0 / 484.5 MB, free: 3.648 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07228/0.4471, allocations: 29.72 MB / 0.5022 GB, free: 6.043 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.32/13.77, allocations: 11.86 kB / 0.5022 GB, free: 6.031 MB / 430.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.Oscillator_res.csv","/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) Reference file matches