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.001352/0.001352, allocations: 112.8 kB / 17.06 MB, free: 5.969 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.001367/0.001366, allocations: 200 kB / 18.01 MB, free: 5.047 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.401/1.401, allocations: 222.9 MB / 241.7 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001429/0.001429, allocations: 47.92 kB / 350.8 MB, free: 3.758 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2699, allocations: 49.43 MB / 400.2 MB, free: 8.41 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006608/0.2766, allocations: 5.276 MB / 405.5 MB, free: 3.531 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01132/0.2879, allocations: 9.063 MB / 414.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006148/0.2886, allocations: 39.69 kB / 414.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001006/0.2896, allocations: 405.4 kB / 415 MB, free: 9.992 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002656/0.2923, allocations: 0.8185 MB / 415.8 MB, free: 9.168 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00178/0.2941, allocations: 0.587 MB / 416.4 MB, free: 8.578 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002736/0.2969, allocations: 1.701 MB / 418.1 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.2972, allocations: 159.1 kB / 418.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004012/0.2976, allocations: 302.5 kB / 418.6 MB, free: 6.406 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004016/0.298, allocations: 326 kB / 418.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.26e-05/0.298, allocations: 32 kB / 418.9 MB, free: 6.055 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001601/0.2997, allocations: 0.6516 MB / 419.6 MB, free: 5.402 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001115/0.2998, allocations: 95.33 kB / 419.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004241/0.3002, allocations: 405.5 kB / 420.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001732/0.302, allocations: 1.21 MB / 421.3 MB, free: 3.695 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.226e-06/0.302, allocations: 8 kB / 421.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.302, allocations: 0 / 421.3 MB, free: 3.688 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.923e-05/0.302, allocations: 0 / 421.3 MB, free: 3.688 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.002046/0.3041, allocations: 1.306 MB / 422.6 MB, free: 2.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3041, allocations: 12.02 kB / 422.6 MB, free: 2.316 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.199e-05/0.3042, allocations: 62.73 kB / 422.6 MB, free: 2.246 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001354/0.3043, allocations: 116.2 kB / 422.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001245/0.3056, allocations: 0.8645 MB / 423.6 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.506e-05/0.3056, allocations: 16.56 kB / 423.6 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.594e-05/0.3057, allocations: 31.97 kB / 423.7 MB, free: 1.168 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005558/0.3063, allocations: 303.7 kB / 424 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3063, allocations: 3.938 kB / 424 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.284e-05/0.3063, allocations: 15.94 kB / 424 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.124e-05/0.3064, allocations: 4 kB / 424 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004344/0.3068, allocations: 238.1 kB / 424.2 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001903/0.3087, allocations: 1.187 MB / 425.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004954/0.3092, allocations: 206.2 kB / 425.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003797/0.3096, allocations: 218.1 kB / 425.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00975/0.3194, allocations: 8.577 MB / 434.4 MB, free: 4.953 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.959e-05/0.3195, allocations: 34.5 kB / 434.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.683e-06/0.3195, allocations: 0 / 434.4 MB, free: 4.91 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001714/0.3212, allocations: 0.6627 MB / 435.1 MB, free: 4.219 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.413e-05/0.3213, allocations: 81.11 kB / 435.2 MB, free: 4.121 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001011/0.3223, allocations: 0.8026 MB / 436 MB, free: 3.301 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.64e-05/0.3223, allocations: 29.7 kB / 436 MB, free: 3.266 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004005/0.3227, allocations: 441 kB / 436.4 MB, free: 2.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.615e-05/0.3228, allocations: 87.27 kB / 436.5 MB, free: 2.742 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3229, allocations: 57.89 kB / 436.6 MB, free: 2.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3231, allocations: 321.9 kB / 436.9 MB, free: 2.359 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001467/0.3232, allocations: 68.14 kB / 437 MB, free: 2.293 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3235, allocations: 150.4 kB / 437.1 MB, free: 2.113 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003755/0.3239, allocations: 227.3 kB / 437.3 MB, free: 1.863 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.3239, allocations: 7.938 kB / 437.3 MB, free: 1.855 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006564/0.3245, allocations: 413.5 kB / 437.7 MB, free: 1.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.861e-05/0.3246, allocations: 11.94 kB / 437.8 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.944e-05/0.3246, allocations: 12 kB / 437.8 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003998/0.325, allocations: 145 kB / 437.9 MB, free: 1.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000167/0.3252, allocations: 31.97 kB / 437.9 MB, free: 1.242 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007198/0.3259, allocations: 0.7046 MB / 438.6 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000245/0.3262, allocations: 27.78 kB / 438.7 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.819e-05/0.3262, allocations: 16 kB / 438.7 MB, free: 480 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.0002805/0.3265, allocations: 199.5 kB / 438.9 MB, free: 272 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001233/0.3266, allocations: 107.3 kB / 439 MB, free: 164 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008004/0.3275, allocations: 407.5 kB / 439.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.875e-06/0.3275, allocations: 4 kB / 439.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.99e-06/0.3275, allocations: 0 / 439.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.3275, allocations: 0 / 439.4 MB, free: 15.75 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006525/0.3281, allocations: 0.5111 MB / 439.9 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.283e-05/0.3282, allocations: 16 kB / 439.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.3283, allocations: 23.92 kB / 439.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000297/0.3286, allocations: 143.1 kB / 440.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.3286, allocations: 8 kB / 440.1 MB, free: 15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006975/0.3293, allocations: 0.6959 MB / 440.8 MB, free: 14.29 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.3294, allocations: 3.938 kB / 440.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006553/0.33, allocations: 466.9 kB / 441.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002103/0.3302, allocations: 180.4 kB / 441.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.657e-05/0.3303, allocations: 7.938 kB / 441.4 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001987/0.3305, allocations: 4 kB / 441.4 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.206e-05/0.3306, allocations: 15.98 kB / 441.4 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.538e-05/0.3306, allocations: 8 kB / 441.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006622/0.3313, allocations: 0.55 MB / 442 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3313, allocations: 4 kB / 442 MB, free: 13.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005618/0.3319, allocations: 191.7 kB / 442.2 MB, free: 12.83 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.001355/0.3333, allocations: 1.193 MB / 443.4 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000606/0.3339, allocations: 275.7 kB / 443.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.921e-06/0.3339, allocations: 4 kB / 443.7 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003042/0.3342, allocations: 178.1 kB / 443.8 MB, free: 11.13 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000739/0.3349, allocations: 168 kB / 444 MB, free: 10.97 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007101/0.3421, allocations: 5.348 MB / 449.3 MB, free: 5.438 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006002/0.3427, allocations: 0.9413 MB / 450.3 MB, free: 4.469 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002956/0.343, allocations: 110.7 kB / 450.4 MB, free: 4.355 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003567/0.3434, allocations: 311.3 kB / 450.7 MB, free: 4.051 MB / 366.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3434, allocations: 3.938 kB / 450.7 MB, free: 4.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04869/0.3921, allocations: 18.32 MB / 469 MB, free: 1.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.53/13.93, allocations: 2.5 kB / 469 MB, free: 1.941 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