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.001402/0.001402, allocations: 114.6 kB / 17.07 MB, free: 6.016 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.001474/0.001474, allocations: 191 kB / 18 MB, free: 5.098 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.304/1.304, allocations: 222.9 MB / 241.7 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001091/0.001091, allocations: 43.94 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2766/0.2777, allocations: 49.44 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005623/0.2834, allocations: 5.288 MB / 405.5 MB, free: 3.512 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009503/0.2929, allocations: 9.063 MB / 414.6 MB, free: 10.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007165/0.2937, allocations: 39.69 kB / 414.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009821/0.2947, allocations: 401.4 kB / 415 MB, free: 9.973 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002363/0.2971, allocations: 0.8458 MB / 415.9 MB, free: 9.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001522/0.2986, allocations: 0.587 MB / 416.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002318/0.3009, allocations: 1.697 MB / 418.1 MB, free: 6.828 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000275/0.3012, allocations: 159.1 kB / 418.3 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000384/0.3016, allocations: 310.5 kB / 418.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000347/0.302, allocations: 322 kB / 418.9 MB, free: 6.039 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.253e-05/0.302, allocations: 28 kB / 418.9 MB, free: 6.012 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00131/0.3034, allocations: 0.6516 MB / 419.6 MB, free: 5.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.174e-05/0.3035, allocations: 103.3 kB / 419.7 MB, free: 5.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003334/0.3038, allocations: 401.5 kB / 420.1 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001439/0.3052, allocations: 1.21 MB / 421.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.3053, allocations: 0 / 421.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3053, allocations: 0 / 421.3 MB, free: 3.648 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.101e-05/0.3053, allocations: 0 / 421.3 MB, free: 3.648 MB / 334.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.001847/0.3071, allocations: 1.317 MB / 422.6 MB, free: 2.277 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.716e-05/0.3072, allocations: 11.89 kB / 422.6 MB, free: 2.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.919e-05/0.3073, allocations: 58.73 kB / 422.7 MB, free: 2.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.3074, allocations: 116.2 kB / 422.8 MB, free: 2.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001129/0.3085, allocations: 0.8684 MB / 423.7 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.96e-05/0.3086, allocations: 16.56 kB / 423.7 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.038e-05/0.3086, allocations: 24 kB / 423.7 MB, free: 1.125 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004921/0.3091, allocations: 315.6 kB / 424 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.18e-05/0.3092, allocations: 0 / 424 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.929e-05/0.3092, allocations: 8 kB / 424 MB, free: 0.7969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.3092, allocations: 11.98 kB / 424 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003892/0.3096, allocations: 230.1 kB / 424.3 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001647/0.3113, allocations: 1.187 MB / 425.4 MB, free: 15.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003552/0.3116, allocations: 206.6 kB / 425.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003196/0.312, allocations: 222 kB / 425.9 MB, free: 14.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00814/0.3201, allocations: 8.569 MB / 434.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.784e-05/0.3202, allocations: 38.56 kB / 434.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.635e-06/0.3202, allocations: 0 / 434.5 MB, free: 4.863 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001525/0.3217, allocations: 0.6627 MB / 435.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.301e-05/0.3218, allocations: 77.11 kB / 435.2 MB, free: 4.078 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008629/0.3226, allocations: 0.7987 MB / 436 MB, free: 3.262 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.274e-05/0.3227, allocations: 29.7 kB / 436 MB, free: 3.227 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003539/0.323, allocations: 452.9 kB / 436.5 MB, free: 2.777 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.415e-05/0.3231, allocations: 83.27 kB / 436.6 MB, free: 2.695 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.758e-05/0.3232, allocations: 57.89 kB / 436.6 MB, free: 2.633 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3234, allocations: 321.9 kB / 436.9 MB, free: 2.312 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001397/0.3235, allocations: 64.22 kB / 437 MB, free: 2.25 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002014/0.3237, allocations: 154.4 kB / 437.1 MB, free: 2.066 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003522/0.3241, allocations: 226.1 kB / 437.4 MB, free: 1.816 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3241, allocations: 3.938 kB / 437.4 MB, free: 1.812 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006336/0.3247, allocations: 420.4 kB / 437.8 MB, free: 1.395 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.257e-05/0.3248, allocations: 4 kB / 437.8 MB, free: 1.391 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.085e-05/0.3248, allocations: 16 kB / 437.8 MB, free: 1.375 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004054/0.3252, allocations: 143 kB / 437.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000173/0.3254, allocations: 32.11 kB / 438 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007088/0.3261, allocations: 0.7124 MB / 438.7 MB, free: 476 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002622/0.3264, allocations: 27.78 kB / 438.7 MB, free: 448 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.416e-05/0.3264, allocations: 12 kB / 438.7 MB, free: 436 kB / 350.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.0002391/0.3267, allocations: 193.8 kB / 438.9 MB, free: 232 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001127/0.3268, allocations: 115.4 kB / 439 MB, free: 116 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007992/0.3276, allocations: 411.4 kB / 439.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.012e-06/0.3276, allocations: 0 / 439.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.023e-06/0.3276, allocations: 0 / 439.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.3277, allocations: 4 kB / 439.4 MB, free: 15.7 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.3284, allocations: 0.519 MB / 439.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.546e-05/0.3284, allocations: 12 kB / 440 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.3285, allocations: 19.92 kB / 440 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002823/0.3288, allocations: 140.6 kB / 440.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.01e-05/0.3288, allocations: 4 kB / 440.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006211/0.3295, allocations: 0.6984 MB / 440.8 MB, free: 14.24 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.3295, allocations: 3.984 kB / 440.8 MB, free: 14.23 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000593/0.3301, allocations: 466.9 kB / 441.3 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002315/0.3303, allocations: 180.4 kB / 441.5 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.863e-05/0.3304, allocations: 3.938 kB / 441.5 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002101/0.3306, allocations: 8 kB / 441.5 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.338e-05/0.3307, allocations: 11.98 kB / 441.5 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.3307, allocations: 15.98 kB / 441.5 MB, free: 13.53 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006307/0.3314, allocations: 0.5422 MB / 442 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3314, allocations: 0 / 442 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005728/0.332, allocations: 195.6 kB / 442.2 MB, free: 12.79 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.001239/0.3332, allocations: 1.189 MB / 443.4 MB, free: 11.56 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005663/0.3338, allocations: 280.3 kB / 443.7 MB, free: 11.28 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.3338, allocations: 3.938 kB / 443.7 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002842/0.3341, allocations: 179.3 kB / 443.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007135/0.3348, allocations: 160.2 kB / 444 MB, free: 10.93 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00608/0.3409, allocations: 5.352 MB / 449.4 MB, free: 5.391 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004496/0.3414, allocations: 0.9335 MB / 450.3 MB, free: 4.43 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002749/0.3417, allocations: 106.7 kB / 450.4 MB, free: 4.32 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002992/0.342, allocations: 315.3 kB / 450.7 MB, free: 4.012 MB / 366.1 MB Notification: Performance of SimCode: time 4.21e-07/0.342, allocations: 3.938 kB / 450.7 MB, free: 4.008 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03774/0.3797, allocations: 18.32 MB / 469 MB, free: 1.895 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.45, allocations: 10.33 kB / 469.1 MB, free: 1.891 MB / 382.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