Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001621/0.001621, allocations: 117.6 kB / 17.79 MB, free: 5.125 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001744, allocations: 200.7 kB / 18.74 MB, free: 4.184 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.443/1.443, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001985/0.001985, allocations: 67.89 kB / 358.2 MB, free: 13.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2793/0.2813, allocations: 50.54 MB / 408.8 MB, free: 1.527 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00698/0.2884, allocations: 5.288 MB / 414 MB, free: 12.22 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01253/0.3009, allocations: 9.114 MB / 423.2 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008808/0.3019, allocations: 35.69 kB / 423.2 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001246/0.3032, allocations: 397.4 kB / 423.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003033/0.3062, allocations: 0.8185 MB / 424.4 MB, free: 1.816 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002101/0.3083, allocations: 0.6026 MB / 425 MB, free: 1.211 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003051/0.3114, allocations: 1.716 MB / 426.7 MB, free: 15.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004152/0.3119, allocations: 163 kB / 426.9 MB, free: 15.31 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006524/0.3125, allocations: 314.5 kB / 427.2 MB, free: 15 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006048/0.3131, allocations: 322 kB / 427.5 MB, free: 14.69 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000109/0.3133, allocations: 31.94 kB / 427.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.3152, allocations: 0.6672 MB / 428.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001376/0.3153, allocations: 103.3 kB / 428.3 MB, free: 13.89 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005206/0.3158, allocations: 401.5 kB / 428.7 MB, free: 13.49 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002034/0.3179, allocations: 1.218 MB / 429.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3179, allocations: 3.938 kB / 429.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.3179, allocations: 0 / 429.9 MB, free: 12.27 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.21e-05/0.318, allocations: 0 / 429.9 MB, free: 12.27 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.002297/0.3203, allocations: 1.317 MB / 431.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.513e-05/0.3203, allocations: 12.03 kB / 431.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001015/0.3204, allocations: 62.72 kB / 431.3 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003625/0.3208, allocations: 132.2 kB / 431.4 MB, free: 10.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.3222, allocations: 0.8645 MB / 432.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.642e-05/0.3222, allocations: 12.56 kB / 432.3 MB, free: 9.754 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.337e-05/0.3223, allocations: 27.94 kB / 432.3 MB, free: 9.727 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005716/0.3229, allocations: 311.7 kB / 432.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.3229, allocations: 0 / 432.6 MB, free: 9.41 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.342e-05/0.3229, allocations: 12 kB / 432.7 MB, free: 9.398 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.554e-05/0.323, allocations: 8 kB / 432.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004635/0.3234, allocations: 234.1 kB / 432.9 MB, free: 9.16 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002074/0.3255, allocations: 1.183 MB / 434.1 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004078/0.3259, allocations: 206.7 kB / 434.3 MB, free: 7.695 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003588/0.3263, allocations: 233.1 kB / 434.5 MB, free: 7.461 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01006/0.3364, allocations: 8.874 MB / 443.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.558e-05/0.3365, allocations: 38.56 kB / 443.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.364e-06/0.3365, allocations: 0 / 443.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001782/0.3383, allocations: 0.6665 MB / 444.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.191e-05/0.3384, allocations: 81.11 kB / 444.2 MB, free: 12.28 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001121/0.3395, allocations: 0.7909 MB / 444.9 MB, free: 11.47 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 4.101e-05/0.3395, allocations: 33.7 kB / 445 MB, free: 11.43 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004034/0.34, allocations: 445 kB / 445.4 MB, free: 10.99 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.634e-05/0.34, allocations: 83.27 kB / 445.5 MB, free: 10.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.923e-05/0.3401, allocations: 57.94 kB / 445.6 MB, free: 10.85 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3403, allocations: 317.9 kB / 445.9 MB, free: 10.53 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001574/0.3405, allocations: 72.2 kB / 445.9 MB, free: 10.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002175/0.3407, allocations: 145.9 kB / 446.1 MB, free: 10.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003795/0.3411, allocations: 229.8 kB / 446.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.286e-06/0.3411, allocations: 0 / 446.3 MB, free: 10.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007277/0.3418, allocations: 416.7 kB / 446.7 MB, free: 9.617 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.17e-05/0.3419, allocations: 12 kB / 446.7 MB, free: 9.605 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.469e-05/0.3419, allocations: 16 kB / 446.7 MB, free: 9.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003863/0.3423, allocations: 128.8 kB / 446.9 MB, free: 9.461 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001788/0.3425, allocations: 47.84 kB / 446.9 MB, free: 9.414 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007409/0.3432, allocations: 0.7112 MB / 447.6 MB, free: 8.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002977/0.3436, allocations: 27.78 kB / 447.6 MB, free: 8.652 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.049e-05/0.3436, allocations: 12 kB / 447.7 MB, free: 8.641 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of prepare postOptimizeDAE: time 0.0002752/0.3439, allocations: 193.8 kB / 447.8 MB, free: 8.441 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001677/0.3441, allocations: 107.3 kB / 448 MB, free: 8.336 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008447/0.3449, allocations: 423.3 kB / 448.4 MB, free: 7.914 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.774e-06/0.3449, allocations: 4 kB / 448.4 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.3449, allocations: 0 / 448.4 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.345, allocations: 0 / 448.4 MB, free: 7.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007097/0.3457, allocations: 0.5151 MB / 448.9 MB, free: 7.348 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.351e-05/0.3457, allocations: 12 kB / 448.9 MB, free: 7.336 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001235/0.3458, allocations: 15.98 kB / 448.9 MB, free: 7.32 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003025/0.3461, allocations: 140.6 kB / 449 MB, free: 7.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.184e-05/0.3462, allocations: 8 kB / 449.1 MB, free: 7.172 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006716/0.3469, allocations: 0.7031 MB / 449.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.606e-06/0.3469, allocations: 4 kB / 449.8 MB, free: 6.441 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000636/0.3475, allocations: 453 kB / 450.2 MB, free: 5.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002503/0.3478, allocations: 184.4 kB / 450.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.538e-05/0.3479, allocations: 0 / 450.4 MB, free: 5.781 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002211/0.3481, allocations: 8 kB / 450.4 MB, free: 5.773 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.315e-05/0.3482, allocations: 11.98 kB / 450.4 MB, free: 5.762 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.3482, allocations: 12 kB / 450.4 MB, free: 5.75 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0007288/0.3489, allocations: 0.5461 MB / 451 MB, free: 5.195 MB / 366.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3489, allocations: 0 / 451 MB, free: 5.195 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006077/0.3495, allocations: 195.7 kB / 451.2 MB, free: 5.004 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(2,11)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001463/0.351, allocations: 1.192 MB / 452.3 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006121/0.3516, allocations: 288.2 kB / 452.6 MB, free: 3.488 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.3517, allocations: 4.062 kB / 452.6 MB, free: 3.484 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003167/0.352, allocations: 183.3 kB / 452.8 MB, free: 3.293 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007792/0.3528, allocations: 160.1 kB / 453 MB, free: 3.133 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007574/0.3604, allocations: 5.334 MB / 458.3 MB, free: 13.62 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006241/0.361, allocations: 0.9374 MB / 459.2 MB, free: 12.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003174/0.3613, allocations: 106.7 kB / 459.3 MB, free: 12.54 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003655/0.3617, allocations: 311.3 kB / 459.6 MB, free: 12.24 MB / 382.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3617, allocations: 4 kB / 459.7 MB, free: 12.23 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05219/0.4139, allocations: 18.38 MB / 478 MB, free: 10.01 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.66/14.07, allocations: 7.875 kB / 478 MB, free: 10 MB / 398.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv --start-time 0 --stop-time 0.2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 0.0002 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches