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.0009106/0.0009106, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001068/0.001068, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9093/0.9093, allocations: 177 MB / 204.1 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] 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 1.884e-06/1.884e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.212e-05/2.401e-05, allocations: 6.281 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.005798/0.005822, allocations: 6.49 MB / 331 MB, free: 9.383 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.008851/0.01467, allocations: 9.324 MB / 340.3 MB, free: 12 kB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007389/0.01541, allocations: 122.7 kB / 340.4 MB, free: 15.89 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001096/0.01651, allocations: 0.6461 MB / 341.1 MB, free: 15.24 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002101/0.01861, allocations: 1.256 MB / 342.3 MB, free: 13.98 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.01971, allocations: 0.6758 MB / 343 MB, free: 13.3 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.002499/0.02221, allocations: 2.652 MB / 345.7 MB, free: 10.64 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003284/0.02254, allocations: 176.4 kB / 345.8 MB, free: 10.44 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007985/0.02333, allocations: 0.7052 MB / 346.5 MB, free: 9.734 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003715/0.02371, allocations: 382.6 kB / 346.9 MB, free: 9.359 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 7.774e-05/0.02378, allocations: 56 kB / 347 MB, free: 9.305 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009964/0.02478, allocations: 0.7023 MB / 347.7 MB, free: 8.602 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001259/0.02491, allocations: 182.8 kB / 347.9 MB, free: 8.422 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002819/0.02519, allocations: 382.8 kB / 348.2 MB, free: 8.047 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001352/0.02654, allocations: 1.997 MB / 350.2 MB, free: 6.043 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.417e-06/0.02654, allocations: 4 kB / 350.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.293e-06/0.02654, allocations: 0 / 350.2 MB, free: 6.039 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.28e-05/0.02656, allocations: 0 / 350.2 MB, free: 6.039 MB / 314.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.001793/0.02835, allocations: 1.951 MB / 352.2 MB, free: 4.047 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.02839, allocations: 11.98 kB / 352.2 MB, free: 4.035 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.875e-05/0.02847, allocations: 90.7 kB / 352.3 MB, free: 3.938 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001563/0.02863, allocations: 207.7 kB / 352.5 MB, free: 3.734 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001291/0.02992, allocations: 1.231 MB / 353.7 MB, free: 2.449 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.477e-05/0.02995, allocations: 33.38 kB / 353.7 MB, free: 2.414 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.241e-05/0.03001, allocations: 52.08 kB / 353.8 MB, free: 2.363 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005864/0.03059, allocations: 0.5236 MB / 354.3 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.176e-05/0.03061, allocations: 0 / 354.3 MB, free: 1.832 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.03064, allocations: 16 kB / 354.3 MB, free: 1.816 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.483e-05/0.03065, allocations: 19.98 kB / 354.4 MB, free: 1.797 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005586/0.03121, allocations: 468.1 kB / 354.8 MB, free: 1.344 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002004/0.03321, allocations: 1.946 MB / 356.8 MB, free: 15.32 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005983/0.03381, allocations: 0.507 MB / 357.3 MB, free: 14.8 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004565/0.03427, allocations: 465.3 kB / 357.7 MB, free: 14.34 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00285/0.03712, allocations: 2.265 MB / 360 MB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003735/0.03749, allocations: 314 kB / 360.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of pre-optimization done (n=61): time 1.823e-06/0.03749, allocations: 0 / 360.3 MB, free: 11.73 MB / 330.7 MB Notification: Performance of matching and sorting (n=65): time 0.002938/0.04043, allocations: 2.286 MB / 362.6 MB, free: 9.402 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.04047, allocations: 55.91 kB / 362.6 MB, free: 9.336 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009602/0.04143, allocations: 1.291 MB / 363.9 MB, free: 8.047 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.177e-05/0.04146, allocations: 37.7 kB / 364 MB, free: 8.004 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003827/0.04185, allocations: 0.708 MB / 364.7 MB, free: 7.293 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001158/0.04196, allocations: 222 kB / 364.9 MB, free: 7.074 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001139/0.04208, allocations: 126.3 kB / 365 MB, free: 6.945 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.594e-05/0.04216, allocations: 334 kB / 365.3 MB, free: 6.613 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000267/0.04243, allocations: 217.5 kB / 365.6 MB, free: 6.402 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003236/0.04275, allocations: 360.4 kB / 365.9 MB, free: 5.996 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006349/0.04339, allocations: 0.6126 MB / 366.5 MB, free: 5.332 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.315e-06/0.04339, allocations: 0 / 366.5 MB, free: 5.332 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001015/0.04441, allocations: 0.9716 MB / 367.5 MB, free: 4.348 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.586e-05/0.04442, allocations: 4 kB / 367.5 MB, free: 4.344 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.173e-05/0.04447, allocations: 67.98 kB / 367.6 MB, free: 4.277 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003314/0.04481, allocations: 185.1 kB / 367.7 MB, free: 4.094 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002469/0.04505, allocations: 111.8 kB / 367.8 MB, free: 3.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002326/0.04738, allocations: 2.624 MB / 370.5 MB, free: 1.254 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002475/0.04763, allocations: 35.95 kB / 370.5 MB, free: 1.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.389e-05/0.04767, allocations: 31.98 kB / 370.5 MB, free: 1.188 MB / 330.7 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.0002927/0.04796, allocations: 266.8 kB / 370.8 MB, free: 0.918 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001178/0.04808, allocations: 190.9 kB / 371 MB, free: 0.7305 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001334/0.04941, allocations: 0.9701 MB / 372 MB, free: 15.74 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.361e-05/0.04943, allocations: 4 kB / 372 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.903e-06/0.04943, allocations: 4 kB / 372 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.075e-05/0.04945, allocations: 3.984 kB / 372 MB, free: 15.73 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001017/0.05046, allocations: 0.8113 MB / 372.8 MB, free: 14.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.291e-05/0.05054, allocations: 60 kB / 372.8 MB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002133/0.05075, allocations: 71.88 kB / 372.9 MB, free: 14.75 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003541/0.0511, allocations: 175.9 kB / 373.1 MB, free: 14.57 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.787e-05/0.05114, allocations: 16 kB / 373.1 MB, free: 14.56 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002233/0.05337, allocations: 2.613 MB / 375.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.05338, allocations: 0 / 375.7 MB, free: 11.84 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001563/0.05494, allocations: 1.181 MB / 376.9 MB, free: 10.63 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003001/0.05524, allocations: 186.8 kB / 377.1 MB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.234e-05/0.05532, allocations: 15.94 kB / 377.1 MB, free: 10.43 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.05552, allocations: 27.91 kB / 377.1 MB, free: 10.41 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001099/0.05563, allocations: 52.34 kB / 377.2 MB, free: 10.36 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.37e-05/0.05567, allocations: 27.94 kB / 377.2 MB, free: 10.33 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0008325/0.0565, allocations: 0.8574 MB / 378 MB, free: 9.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.0565, allocations: 4 kB / 378.1 MB, free: 9.477 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007019/0.0572, allocations: 391.2 kB / 378.4 MB, free: 9.094 MB / 346.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 (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.002284/0.05948, allocations: 2.11 MB / 380.5 MB, free: 6.949 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001204/0.06069, allocations: 0.8675 MB / 381.4 MB, free: 6.059 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.06069, allocations: 4 kB / 381.4 MB, free: 6.055 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006413/0.06133, allocations: 0.6165 MB / 382 MB, free: 5.414 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005797/0.06191, allocations: 206.2 kB / 382.2 MB, free: 5.211 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01099/0.0729, allocations: 9.366 MB / 391.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.0733, allocations: 0.5876 MB / 392.2 MB, free: 10.91 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003822/0.07368, allocations: 179.2 kB / 392.4 MB, free: 10.73 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004661/0.07415, allocations: 0.5745 MB / 392.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of SimCode: time 2.906e-06/0.07415, allocations: 0 / 392.9 MB, free: 10.16 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04878/0.1229, allocations: 31.36 MB / 424.3 MB, free: 10.95 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.79/7.913, allocations: 3.938 kB / 424.3 MB, free: 10.95 MB / 394.7 MB " [Timeout remaining time 652] (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 4.998e-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.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/Oscillator/Oscillator.csv","/var/lib/jenkins/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] "" Variables in the reference:time,T1.vbe,T2.vbe Variables in the result:time,T1.vbe,T1.vbx,T2.vbe,T2.vbx [Calling sys.exit(0), Time elapsed: 9.908676338382065]