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.0009665/0.0009664, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001159/0.001159, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.343/1.343, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 64.36 kB / 307 MB, free: 0.5547 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08275/0.08389, allocations: 50.52 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007622/0.09153, allocations: 7.524 MB / 365.1 MB, free: 6.477 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.1544/0.246, allocations: 10.73 MB / 375.8 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008116/0.2468, allocations: 37.66 kB / 375.9 MB, free: 9.133 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00162/0.2485, allocations: 0.7142 MB / 376.6 MB, free: 9.082 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003104/0.2516, allocations: 1.183 MB / 377.8 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001804/0.2534, allocations: 0.6805 MB / 378.4 MB, free: 8.523 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003254/0.2567, allocations: 2.552 MB / 381 MB, free: 7.988 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000376/0.2571, allocations: 285.2 kB / 381.3 MB, free: 7.898 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004857/0.2576, allocations: 486.6 kB / 381.7 MB, free: 7.754 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004472/0.258, allocations: 0.5317 MB / 382.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001028/0.2581, allocations: 55.62 kB / 382.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001628/0.2598, allocations: 0.7722 MB / 383.1 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001302/0.2599, allocations: 184.5 kB / 383.3 MB, free: 7.246 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004592/0.2604, allocations: 0.6814 MB / 384 MB, free: 6.805 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001907/0.2623, allocations: 1.927 MB / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.2623, allocations: 0 / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.192e-06/0.2623, allocations: 0 / 385.9 MB, free: 6.109 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.757e-05/0.2623, allocations: 1.031 kB / 385.9 MB, free: 6.109 MB / 302.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.00244/0.2648, allocations: 1.979 MB / 387.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.451e-05/0.2648, allocations: 9.062 kB / 387.9 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.056e-05/0.2649, allocations: 91.97 kB / 388 MB, free: 4.707 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001958/0.2651, allocations: 202.6 kB / 388.2 MB, free: 4.605 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001525/0.2666, allocations: 1.344 MB / 389.5 MB, free: 3.906 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.299e-05/0.2667, allocations: 30.19 kB / 389.5 MB, free: 3.895 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.429e-05/0.2668, allocations: 49.62 kB / 389.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008585/0.2676, allocations: 0.5096 MB / 390.1 MB, free: 3.664 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.322e-05/0.2677, allocations: 5.203 kB / 390.1 MB, free: 3.66 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.707e-05/0.2677, allocations: 20.16 kB / 390.1 MB, free: 3.645 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.681e-05/0.2677, allocations: 20.3 kB / 390.1 MB, free: 3.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008758/0.2686, allocations: 473.9 kB / 390.6 MB, free: 3.488 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002578/0.2712, allocations: 2.101 MB / 392.7 MB, free: 2.18 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008633/0.2721, allocations: 0.7094 MB / 393.4 MB, free: 1.668 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006572/0.2728, allocations: 0.5113 MB / 393.9 MB, free: 1.387 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005596/0.2784, allocations: 4.904 MB / 398.8 MB, free: 12.85 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005952/0.279, allocations: 311.6 kB / 399.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of pre-optimization done (n=61): time 2.354e-06/0.279, allocations: 0 / 399.1 MB, free: 12.65 MB / 318.1 MB Notification: Performance of matching and sorting (n=65): time 0.004935/0.2839, allocations: 2.407 MB / 401.5 MB, free: 11.2 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.272e-05/0.284, allocations: 63.42 kB / 401.6 MB, free: 11.14 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.2854, allocations: 1.281 MB / 402.9 MB, free: 10.46 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.881e-05/0.2854, allocations: 36.17 kB / 402.9 MB, free: 10.42 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000553/0.286, allocations: 0.7018 MB / 403.6 MB, free: 9.797 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001585/0.2861, allocations: 222.7 kB / 403.8 MB, free: 9.605 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001675/0.2863, allocations: 123.2 kB / 404 MB, free: 9.535 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001191/0.2864, allocations: 331.4 kB / 404.3 MB, free: 9.211 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004263/0.2869, allocations: 216.7 kB / 404.5 MB, free: 9.105 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000537/0.2874, allocations: 359 kB / 404.8 MB, free: 8.828 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001032/0.2885, allocations: 0.6142 MB / 405.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2885, allocations: 2.688 kB / 405.5 MB, free: 8.363 MB / 318.1 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001706/0.2902, allocations: 0.9693 MB / 406.4 MB, free: 7.383 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.735e-05/0.2902, allocations: 4 kB / 406.4 MB, free: 7.379 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.795e-05/0.2903, allocations: 64 kB / 406.5 MB, free: 7.316 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004876/0.2908, allocations: 197.1 kB / 406.7 MB, free: 7.121 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004606/0.2913, allocations: 107.8 kB / 406.8 MB, free: 7.016 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00321/0.2945, allocations: 2.756 MB / 409.5 MB, free: 4.121 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005083/0.295, allocations: 28.03 kB / 409.6 MB, free: 4.094 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.207e-05/0.2951, allocations: 32 kB / 409.6 MB, free: 4.062 MB / 318.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.0003758/0.2955, allocations: 269.7 kB / 409.9 MB, free: 3.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.2957, allocations: 181.8 kB / 410 MB, free: 3.609 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002005/0.2977, allocations: 0.975 MB / 411 MB, free: 2.621 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.2977, allocations: 4 kB / 411 MB, free: 2.617 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2977, allocations: 4 kB / 411 MB, free: 2.613 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.623e-06/0.2977, allocations: 3.984 kB / 411 MB, free: 2.609 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001104/0.2988, allocations: 0.9118 MB / 411.9 MB, free: 1.656 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.538e-05/0.2989, allocations: 60 kB / 412 MB, free: 1.598 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003364/0.2993, allocations: 79.81 kB / 412.1 MB, free: 1.52 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004296/0.2997, allocations: 168.7 kB / 412.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.641e-05/0.2998, allocations: 23.98 kB / 412.3 MB, free: 1.328 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00312/0.3029, allocations: 2.758 MB / 415 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3029, allocations: 0 / 415 MB, free: 14.44 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002057/0.305, allocations: 1.179 MB / 416.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003549/0.3054, allocations: 251 kB / 416.5 MB, free: 12.98 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.3055, allocations: 15.94 kB / 416.5 MB, free: 12.96 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003926/0.3059, allocations: 31.91 kB / 416.5 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000127/0.3061, allocations: 44.38 kB / 416.5 MB, free: 12.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.744e-05/0.3061, allocations: 24 kB / 416.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001006/0.3071, allocations: 0.8574 MB / 417.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3071, allocations: 0 / 417.4 MB, free: 12.02 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0009772/0.3081, allocations: 383.8 kB / 417.8 MB, free: 11.64 MB / 334.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.003006/0.3111, allocations: 2.091 MB / 419.9 MB, free: 9.562 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001798/0.313, allocations: 0.9232 MB / 420.8 MB, free: 8.617 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.313, allocations: 4 kB / 420.8 MB, free: 8.613 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001065/0.314, allocations: 0.6389 MB / 421.5 MB, free: 7.949 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009406/0.315, allocations: 220.2 kB / 421.7 MB, free: 7.734 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0132/0.3282, allocations: 10.46 MB / 432.1 MB, free: 12.58 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006978/0.3289, allocations: 1.178 MB / 433.3 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006148/0.3296, allocations: 187.2 kB / 433.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005926/0.3302, allocations: 0.5657 MB / 434.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of SimCode: time 6.82e-07/0.3302, allocations: 0 / 434.1 MB, free: 10.62 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05763/0.3878, allocations: 29.32 MB / 463.4 MB, free: 13.41 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.553/9.941, allocations: 14.66 kB / 463.4 MB, free: 13.39 MB / 382.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.0.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