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.001223/0.001223, allocations: 121 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001285/0.001285, allocations: 202 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.392/1.392, allocations: 227.4 MB / 246.9 MB, free: 10.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002179/0.002179, allocations: 71.88 kB / 358.2 MB, free: 13.39 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2826/0.2848, allocations: 50.53 MB / 408.7 MB, free: 1.512 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006042/0.2909, allocations: 5.307 MB / 414 MB, free: 12.19 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01057/0.3015, allocations: 9.11 MB / 423.2 MB, free: 3.043 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008102/0.3023, allocations: 35.69 kB / 423.2 MB, free: 3.008 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00112/0.3035, allocations: 405.4 kB / 423.6 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002834/0.3063, allocations: 0.8302 MB / 424.4 MB, free: 1.773 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002203/0.3086, allocations: 0.6065 MB / 425 MB, free: 1.164 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002835/0.3114, allocations: 1.716 MB / 426.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003634/0.3118, allocations: 171 kB / 426.9 MB, free: 15.26 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005414/0.3124, allocations: 310.6 kB / 427.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003968/0.3128, allocations: 321.9 kB / 427.5 MB, free: 14.64 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.373e-05/0.3129, allocations: 32 kB / 427.6 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001461/0.3143, allocations: 0.6633 MB / 428.2 MB, free: 13.94 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.287e-05/0.3144, allocations: 103.3 kB / 428.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003563/0.3148, allocations: 405.5 kB / 428.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001465/0.3163, allocations: 1.221 MB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.3163, allocations: 0 / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.905e-06/0.3163, allocations: 3.984 kB / 429.9 MB, free: 12.21 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.486e-05/0.3163, allocations: 0 / 429.9 MB, free: 12.21 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.001827/0.3181, allocations: 1.309 MB / 431.3 MB, free: 10.85 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.408e-05/0.3182, allocations: 8.031 kB / 431.3 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.774e-05/0.3183, allocations: 66.72 kB / 431.3 MB, free: 10.77 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002929/0.3186, allocations: 132.2 kB / 431.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001194/0.3198, allocations: 0.8606 MB / 432.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.089e-05/0.3198, allocations: 20.56 kB / 432.3 MB, free: 9.703 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.355e-05/0.3199, allocations: 24 kB / 432.4 MB, free: 9.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005261/0.3204, allocations: 315.6 kB / 432.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3204, allocations: 0 / 432.7 MB, free: 9.359 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.3205, allocations: 12 kB / 432.7 MB, free: 9.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.386e-05/0.3205, allocations: 4 kB / 432.7 MB, free: 9.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004056/0.3209, allocations: 234.1 kB / 432.9 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001644/0.3226, allocations: 1.187 MB / 434.1 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000353/0.3229, allocations: 194.7 kB / 434.3 MB, free: 7.656 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003107/0.3233, allocations: 237.1 kB / 434.5 MB, free: 7.418 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009119/0.3324, allocations: 8.882 MB / 443.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.788e-05/0.3324, allocations: 34.56 kB / 443.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.224e-06/0.3324, allocations: 0 / 443.4 MB, free: 13.03 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001672/0.3341, allocations: 0.6657 MB / 444.1 MB, free: 12.34 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.343e-05/0.3342, allocations: 81.05 kB / 444.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009646/0.3352, allocations: 0.7987 MB / 445 MB, free: 11.42 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.3352, allocations: 25.7 kB / 445 MB, free: 11.39 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003727/0.3356, allocations: 449 kB / 445.4 MB, free: 10.95 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.174e-05/0.3357, allocations: 83.27 kB / 445.5 MB, free: 10.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.57e-05/0.3358, allocations: 61.92 kB / 445.6 MB, free: 10.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001297/0.3359, allocations: 317.9 kB / 445.9 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001482/0.3361, allocations: 64.2 kB / 446 MB, free: 10.42 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002054/0.3363, allocations: 153.9 kB / 446.1 MB, free: 10.23 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003709/0.3367, allocations: 224.5 kB / 446.3 MB, free: 9.984 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.406e-06/0.3367, allocations: 0 / 446.3 MB, free: 9.984 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006528/0.3373, allocations: 426.8 kB / 446.7 MB, free: 9.562 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.3374, allocations: 8.062 kB / 446.8 MB, free: 9.555 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.031e-05/0.3374, allocations: 16 kB / 446.8 MB, free: 9.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003768/0.3378, allocations: 135.9 kB / 446.9 MB, free: 9.406 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001685/0.338, allocations: 35.91 kB / 446.9 MB, free: 9.371 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006595/0.3386, allocations: 0.7124 MB / 447.6 MB, free: 8.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002359/0.3389, allocations: 27.78 kB / 447.7 MB, free: 8.605 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.493e-05/0.3389, allocations: 16 kB / 447.7 MB, free: 8.59 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.0002493/0.3392, allocations: 197.7 kB / 447.9 MB, free: 8.387 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001219/0.3393, allocations: 107.3 kB / 448 MB, free: 8.281 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007344/0.34, allocations: 415.3 kB / 448.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.3401, allocations: 0 / 448.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.3401, allocations: 0 / 448.4 MB, free: 7.867 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.3401, allocations: 7.938 kB / 448.4 MB, free: 7.859 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006411/0.3407, allocations: 0.5074 MB / 448.9 MB, free: 7.305 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.439e-05/0.3408, allocations: 20 kB / 448.9 MB, free: 7.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001181/0.3409, allocations: 15.98 kB / 448.9 MB, free: 7.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002787/0.3412, allocations: 136.6 kB / 449.1 MB, free: 7.133 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.265e-05/0.3412, allocations: 8 kB / 449.1 MB, free: 7.125 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006612/0.3419, allocations: 0.6952 MB / 449.8 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3419, allocations: 0 / 449.8 MB, free: 6.406 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006107/0.3425, allocations: 464.9 kB / 450.2 MB, free: 5.934 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002412/0.3428, allocations: 180.4 kB / 450.4 MB, free: 5.738 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.338e-05/0.3429, allocations: 8 kB / 450.4 MB, free: 5.73 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002076/0.3431, allocations: 7.984 kB / 450.4 MB, free: 5.723 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.806e-05/0.3431, allocations: 15.98 kB / 450.4 MB, free: 5.707 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.949e-05/0.3432, allocations: 11.94 kB / 450.5 MB, free: 5.695 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006333/0.3438, allocations: 0.55 MB / 451 MB, free: 5.137 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3438, allocations: 0 / 451 MB, free: 5.137 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006145/0.3444, allocations: 187.7 kB / 451.2 MB, free: 4.953 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.001416/0.3458, allocations: 1.189 MB / 452.4 MB, free: 3.73 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006137/0.3465, allocations: 284.2 kB / 452.7 MB, free: 3.441 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.3465, allocations: 4 kB / 452.7 MB, free: 3.438 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003078/0.3468, allocations: 186 kB / 452.8 MB, free: 3.246 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007496/0.3476, allocations: 164.1 kB / 453 MB, free: 3.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006479/0.3541, allocations: 5.343 MB / 458.3 MB, free: 13.55 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004714/0.3546, allocations: 0.9374 MB / 459.3 MB, free: 12.59 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002872/0.3548, allocations: 106.7 kB / 459.4 MB, free: 12.48 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003065/0.3552, allocations: 311.3 kB / 459.7 MB, free: 12.18 MB / 382.1 MB Notification: Performance of SimCode: time 5.01e-07/0.3552, allocations: 4 kB / 459.7 MB, free: 12.17 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03955/0.3947, allocations: 18.38 MB / 478.1 MB, free: 9.945 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.8/13.19, allocations: 7.875 kB / 478.1 MB, free: 9.938 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.0.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