Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.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.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",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.001523/0.001523, allocations: 107.1 kB / 16.92 MB, free: 5.777 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.001718/0.001717, allocations: 191.3 kB / 17.85 MB, free: 5.164 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.034/2.034, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001693/0.001693, allocations: 46.14 kB / 300.7 MB, free: 5.773 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1569, allocations: 49.43 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.01037/0.1673, allocations: 5.281 MB / 355.4 MB, free: 15.02 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01771/0.1851, allocations: 9.068 MB / 364.5 MB, free: 5.91 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009547/0.1861, allocations: 23.81 kB / 364.5 MB, free: 5.887 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001607/0.1877, allocations: 389.5 kB / 364.9 MB, free: 5.504 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004097/0.1919, allocations: 0.834 MB / 365.7 MB, free: 4.664 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002718/0.1947, allocations: 0.587 MB / 366.3 MB, free: 4.074 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004144/0.1988, allocations: 1.685 MB / 368 MB, free: 2.383 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005015/0.1994, allocations: 163.1 kB / 368.2 MB, free: 2.207 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006676/0.2, allocations: 302.5 kB / 368.5 MB, free: 1.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006927/0.2008, allocations: 318 kB / 368.8 MB, free: 1.598 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.2009, allocations: 28 kB / 368.8 MB, free: 1.57 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002539/0.2035, allocations: 0.6516 MB / 369.5 MB, free: 0.918 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001678/0.2037, allocations: 103.4 kB / 369.6 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000648/0.2043, allocations: 405.5 kB / 370 MB, free: 428 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2276/0.432, allocations: 1.191 MB / 371.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.095e-06/0.432, allocations: 1.031 kB / 371.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.4321, allocations: 0 / 371.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.47e-05/0.4321, allocations: 0.8125 kB / 371.2 MB, free: 13.46 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: 68 * Number of variables: 68 Notification: Performance of Generate backend data structure: time 0.003345/0.4355, allocations: 1.273 MB / 372.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.061e-05/0.4355, allocations: 9.719 kB / 372.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000106/0.4357, allocations: 62.8 kB / 372.5 MB, free: 12.61 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002774/0.4359, allocations: 112.1 kB / 372.6 MB, free: 12.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002049/0.438, allocations: 0.8521 MB / 373.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.125e-05/0.4381, allocations: 25.59 kB / 373.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.359e-05/0.4381, allocations: 22.62 kB / 373.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008129/0.439, allocations: 309.6 kB / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.439, allocations: 0 / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.454e-05/0.4391, allocations: 8.438 kB / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.156e-05/0.4391, allocations: 12.12 kB / 373.8 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006878/0.4398, allocations: 230.7 kB / 374.1 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002788/0.4426, allocations: 1.182 MB / 375.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005994/0.4432, allocations: 206.9 kB / 375.4 MB, free: 11.69 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000489/0.4437, allocations: 227.4 kB / 375.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01141/0.4552, allocations: 8.568 MB / 384.2 MB, free: 4.371 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.34e-05/0.4552, allocations: 35 kB / 384.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 3.206e-06/0.4552, allocations: 0 / 384.3 MB, free: 4.332 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.002578/0.4578, allocations: 0.6562 MB / 384.9 MB, free: 4.121 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.764e-05/0.4579, allocations: 79.52 kB / 385 MB, free: 4.027 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001614/0.4595, allocations: 0.7958 MB / 385.8 MB, free: 3.883 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.191e-05/0.4595, allocations: 30.7 kB / 385.8 MB, free: 3.852 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004066/0.46, allocations: 456.2 kB / 386.3 MB, free: 3.656 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.153e-05/0.4601, allocations: 72.48 kB / 386.3 MB, free: 3.598 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001348/0.4602, allocations: 58.55 kB / 386.4 MB, free: 3.566 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.986e-05/0.4603, allocations: 312.1 kB / 386.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002272/0.4605, allocations: 71.97 kB / 386.8 MB, free: 3.238 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002733/0.4608, allocations: 148.6 kB / 386.9 MB, free: 3.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005209/0.4613, allocations: 234.3 kB / 387.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.989e-06/0.4613, allocations: 1.469 kB / 387.1 MB, free: 2.965 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001053/0.4624, allocations: 410.3 kB / 387.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.333e-05/0.4624, allocations: 5.969 kB / 387.5 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.554e-05/0.4625, allocations: 14.28 kB / 387.6 MB, free: 2.781 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005633/0.4631, allocations: 139.3 kB / 387.7 MB, free: 2.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002682/0.4634, allocations: 39.31 kB / 387.7 MB, free: 2.746 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007888/0.4642, allocations: 0.7057 MB / 388.4 MB, free: 2.152 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005799/0.4648, allocations: 29.8 kB / 388.5 MB, free: 2.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.596e-05/0.4648, allocations: 19.81 kB / 388.5 MB, free: 2.129 MB / 302.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.0003365/0.4652, allocations: 197.6 kB / 388.7 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002351/0.4654, allocations: 103.9 kB / 388.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001298/0.4667, allocations: 411.2 kB / 389.2 MB, free: 1.727 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.047e-05/0.4668, allocations: 11.59 kB / 389.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.442e-06/0.4668, allocations: 1.094 kB / 389.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.4668, allocations: 2.297 kB / 389.2 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009553/0.4678, allocations: 0.503 MB / 389.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.493e-05/0.4678, allocations: 11.31 kB / 389.7 MB, free: 1.406 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001908/0.468, allocations: 23.25 kB / 389.7 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004264/0.4685, allocations: 133.2 kB / 389.9 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.011e-05/0.4685, allocations: 8.656 kB / 389.9 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007885/0.4693, allocations: 0.7018 MB / 390.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.489e-06/0.4693, allocations: 4.875 kB / 390.6 MB, free: 0.7734 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008813/0.4702, allocations: 465.7 kB / 391 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003317/0.4706, allocations: 174.2 kB / 391.2 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001922/0.4708, allocations: 5.656 kB / 391.2 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004378/0.4712, allocations: 3.859 kB / 391.2 MB, free: 344 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.466e-05/0.4713, allocations: 18.97 kB / 391.2 MB, free: 340 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.524e-05/0.4714, allocations: 8.516 kB / 391.2 MB, free: 340 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00109/0.4725, allocations: 0.5459 MB / 391.8 MB, free: 92 kB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.4725, allocations: 0 / 391.8 MB, free: 92 kB / 302.1 MB Notification: Performance of remove unused functions: time 0.001115/0.4736, allocations: 197.7 kB / 392 MB, free: 60 kB / 302.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.002115/0.4757, allocations: 1.179 MB / 393.2 MB, free: 15.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000921/0.4767, allocations: 291.8 kB / 393.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.4767, allocations: 0 / 393.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004786/0.4772, allocations: 178.8 kB / 393.6 MB, free: 15 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001457/0.4787, allocations: 163.3 kB / 393.8 MB, free: 14.94 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01207/0.4908, allocations: 5.656 MB / 399.4 MB, free: 11.71 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008127/0.4916, allocations: 0.9392 MB / 400.4 MB, free: 11 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007482/0.4924, allocations: 110.4 kB / 400.5 MB, free: 10.97 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005369/0.493, allocations: 310.8 kB / 400.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of SimCode: time 1.833e-06/0.493, allocations: 0 / 400.8 MB, free: 10.73 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1688/0.6618, allocations: 18.11 MB / 418.9 MB, free: 11.1 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.45/20.11, allocations: 3.984 kB / 418.9 MB, free: 11.09 MB / 334.1 MB (rm -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches