Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.Oscillator,fileNamePrefix="Modelica_4_0_0_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.001144/0.001144, allocations: 107.9 kB / 17.06 MB, free: 6.004 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.001144/0.001144, allocations: 191 kB / 18 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.3/1.3, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001211/0.001211, allocations: 43.94 kB / 350.8 MB, free: 3.766 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2563/0.2575, allocations: 49.44 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Oscillator): time 0.007755/0.2653, allocations: 7.504 MB / 407.7 MB, free: 1.285 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01145/0.2768, allocations: 10.7 MB / 418.4 MB, free: 6.531 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001288/0.2781, allocations: 75.31 kB / 418.5 MB, free: 6.457 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001838/0.28, allocations: 0.7131 MB / 419.2 MB, free: 5.738 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003687/0.2837, allocations: 1.196 MB / 420.4 MB, free: 4.535 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001844/0.2856, allocations: 0.67 MB / 421.1 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003782/0.2894, allocations: 2.545 MB / 423.6 MB, free: 1.309 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004479/0.2899, allocations: 283.9 kB / 423.9 MB, free: 1.012 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006208/0.2905, allocations: 497.6 kB / 424.4 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004954/0.291, allocations: 0.5356 MB / 424.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 9.575e-05/0.2911, allocations: 60 kB / 425 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001563/0.2927, allocations: 0.7688 MB / 425.8 MB, free: 15.16 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001499/0.2928, allocations: 182.8 kB / 425.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005351/0.2934, allocations: 0.6793 MB / 426.6 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002184/0.2956, allocations: 1.956 MB / 428.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.909e-06/0.2956, allocations: 0 / 428.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2956, allocations: 0 / 428.6 MB, free: 12.33 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.288e-05/0.2956, allocations: 0 / 428.6 MB, free: 12.33 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.002815/0.2984, allocations: 2.042 MB / 430.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.969e-05/0.2985, allocations: 19.89 kB / 430.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.97e-05/0.2986, allocations: 90.7 kB / 430.7 MB, free: 10.11 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002153/0.2988, allocations: 199.7 kB / 430.9 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.3007, allocations: 1.358 MB / 432.3 MB, free: 8.508 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.3007, allocations: 33 kB / 432.3 MB, free: 8.477 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.985e-05/0.3008, allocations: 47.98 kB / 432.4 MB, free: 8.43 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008933/0.3017, allocations: 0.5119 MB / 432.9 MB, free: 7.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.355e-05/0.3017, allocations: 4 kB / 432.9 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.532e-05/0.3018, allocations: 16 kB / 432.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.877e-05/0.3018, allocations: 19.98 kB / 432.9 MB, free: 7.871 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008801/0.3027, allocations: 472.1 kB / 433.4 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003022/0.3057, allocations: 2.101 MB / 435.5 MB, free: 5.219 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009819/0.3067, allocations: 0.6931 MB / 436.2 MB, free: 4.48 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007222/0.3075, allocations: 0.5329 MB / 436.7 MB, free: 3.949 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007811/0.3153, allocations: 6.513 MB / 443.2 MB, free: 12.45 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005732/0.3159, allocations: 294.5 kB / 443.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of pre-optimization done (n=55): time 2.394e-06/0.3159, allocations: 0 / 443.5 MB, free: 12.15 MB / 366.1 MB Notification: Performance of matching and sorting (n=59): time 0.00364/0.3196, allocations: 1.997 MB / 445.5 MB, free: 10.09 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.652e-05/0.3196, allocations: 59.83 kB / 445.6 MB, free: 10.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001467/0.3211, allocations: 1.296 MB / 446.8 MB, free: 8.73 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.001e-05/0.3212, allocations: 29.7 kB / 446.9 MB, free: 8.695 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00055/0.3217, allocations: 0.7234 MB / 447.6 MB, free: 7.965 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001493/0.3219, allocations: 210.2 kB / 447.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001596/0.322, allocations: 126.3 kB / 447.9 MB, free: 7.629 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.3222, allocations: 329.9 kB / 448.3 MB, free: 7.301 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003939/0.3226, allocations: 197.6 kB / 448.4 MB, free: 7.105 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004866/0.323, allocations: 371.8 kB / 448.8 MB, free: 6.672 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009198/0.324, allocations: 0.5948 MB / 449.4 MB, free: 6.004 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.745e-06/0.324, allocations: 0 / 449.4 MB, free: 6.004 MB / 366.1 MB Notification: Performance of matching and sorting (n=86) (initialization): time 0.001477/0.3255, allocations: 0.9235 MB / 450.3 MB, free: 5.078 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.001e-05/0.3255, allocations: 8.031 kB / 450.3 MB, free: 5.07 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.475e-05/0.3256, allocations: 63.98 kB / 450.4 MB, free: 5.008 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003947/0.326, allocations: 148.8 kB / 450.5 MB, free: 4.859 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004468/0.3265, allocations: 115.8 kB / 450.7 MB, free: 4.746 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00266/0.3291, allocations: 2.523 MB / 453.2 MB, free: 2.082 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004872/0.3296, allocations: 28.03 kB / 453.2 MB, free: 2.055 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.989e-05/0.3297, allocations: 32 kB / 453.2 MB, free: 2.023 MB / 366.1 MB 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.0003974/0.3301, allocations: 273.6 kB / 453.5 MB, free: 1.746 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.3303, allocations: 190.9 kB / 453.7 MB, free: 1.559 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001628/0.3319, allocations: 0.8904 MB / 454.6 MB, free: 0.6602 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.652e-06/0.3319, allocations: 4 kB / 454.6 MB, free: 0.6562 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.3319, allocations: 4 kB / 454.6 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.081e-06/0.332, allocations: 3.984 kB / 454.6 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009189/0.3329, allocations: 0.8671 MB / 455.5 MB, free: 15.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.26e-05/0.333, allocations: 55.98 kB / 455.5 MB, free: 15.68 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003004/0.3333, allocations: 63.89 kB / 455.6 MB, free: 15.61 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003426/0.3336, allocations: 144.7 kB / 455.7 MB, free: 15.47 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.881e-05/0.3337, allocations: 19.98 kB / 455.7 MB, free: 15.45 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002491/0.3362, allocations: 2.502 MB / 458.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.3362, allocations: 4.031 kB / 458.2 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001749/0.3379, allocations: 1.073 MB / 459.3 MB, free: 11.71 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003363/0.3383, allocations: 252 kB / 459.6 MB, free: 11.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001302/0.3384, allocations: 12 kB / 459.6 MB, free: 11.44 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003549/0.3388, allocations: 19.97 kB / 459.6 MB, free: 11.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001067/0.3389, allocations: 48.33 kB / 459.6 MB, free: 11.37 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.824e-05/0.339, allocations: 35.92 kB / 459.7 MB, free: 11.34 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0009749/0.3399, allocations: 0.8539 MB / 460.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3399, allocations: 0 / 460.5 MB, free: 10.49 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0008961/0.3408, allocations: 383.2 kB / 460.9 MB, free: 10.12 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 (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.002692/0.3435, allocations: 1.975 MB / 462.9 MB, free: 8.105 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001558/0.3451, allocations: 0.8443 MB / 463.7 MB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.865e-06/0.3451, allocations: 0 / 463.7 MB, free: 7.238 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009193/0.3461, allocations: 0.5863 MB / 464.3 MB, free: 6.625 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.347, allocations: 210.2 kB / 464.5 MB, free: 6.418 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01209/0.3591, allocations: 9.327 MB / 473.8 MB, free: 12.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000704/0.3598, allocations: 1.174 MB / 475 MB, free: 11.56 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0004942/0.3603, allocations: 183.2 kB / 475.2 MB, free: 11.38 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005888/0.3609, allocations: 0.5735 MB / 475.8 MB, free: 10.8 MB / 398.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3609, allocations: 0 / 475.8 MB, free: 10.8 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06145/0.4224, allocations: 28.98 MB / 0.4929 GB, free: 14.02 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.75/13.17, allocations: 12.67 kB / 0.4929 GB, free: 14.01 MB / 430.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_Oscillator.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Spice3.Examples.Oscillator.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches