Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_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.001629/0.001629, allocations: 109.3 kB / 17.73 MB, free: 5.316 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.001626/0.001626, allocations: 188.2 kB / 18.66 MB, free: 4.391 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.338/1.338, allocations: 205.1 MB / 224.5 MB, free: 12.22 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 55.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08323/0.08445, allocations: 46.62 MB / 374.6 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2139/0.2984, allocations: 5.135 MB / 379.8 MB, free: 9.133 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007919/0.3063, allocations: 8.673 MB / 388.4 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004963/0.3069, allocations: 37.97 kB / 388.5 MB, free: 5.461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009389/0.3079, allocations: 391.2 kB / 388.9 MB, free: 5.262 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002297/0.3102, allocations: 0.828 MB / 389.7 MB, free: 4.773 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001666/0.3119, allocations: 0.5803 MB / 390.3 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002309/0.3142, allocations: 1.645 MB / 391.9 MB, free: 3.863 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002653/0.3145, allocations: 165.4 kB / 392.1 MB, free: 3.789 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000374/0.3148, allocations: 282.2 kB / 392.4 MB, free: 3.668 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003365/0.3152, allocations: 323.2 kB / 392.7 MB, free: 3.504 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.222e-05/0.3153, allocations: 34.41 kB / 392.7 MB, free: 3.5 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00147/0.3167, allocations: 0.5603 MB / 393.3 MB, free: 3.363 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 8.708e-05/0.3168, allocations: 105.3 kB / 393.4 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003029/0.3171, allocations: 403.8 kB / 393.8 MB, free: 3.043 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00143/0.3186, allocations: 1.203 MB / 395 MB, free: 2.539 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.3186, allocations: 0.6094 kB / 395 MB, free: 2.539 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3186, allocations: 0 / 395 MB, free: 2.539 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.919e-05/0.3186, allocations: 0 / 395 MB, free: 2.539 MB / 318.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.001795/0.3204, allocations: 1.313 MB / 396.3 MB, free: 1.582 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.461e-05/0.3205, allocations: 13.09 kB / 396.3 MB, free: 1.578 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.382e-05/0.3206, allocations: 61.88 kB / 396.4 MB, free: 1.523 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001371/0.3207, allocations: 121.4 kB / 396.5 MB, free: 1.461 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0012/0.3219, allocations: 0.8564 MB / 397.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.35e-05/0.3219, allocations: 18.34 kB / 397.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.718e-05/0.322, allocations: 28.7 kB / 397.4 MB, free: 0.918 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005223/0.3225, allocations: 309.2 kB / 397.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.231e-05/0.3226, allocations: 0.7969 kB / 397.7 MB, free: 0.7695 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.788e-05/0.3226, allocations: 14.31 kB / 397.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.3226, allocations: 7.875 kB / 397.7 MB, free: 0.7578 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003984/0.323, allocations: 234.2 kB / 397.9 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001685/0.3247, allocations: 1.19 MB / 399.1 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003646/0.3251, allocations: 203.8 kB / 399.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000317/0.3254, allocations: 223.6 kB / 399.5 MB, free: 15.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009082/0.3345, allocations: 8.57 MB / 408.1 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.3346, allocations: 32.62 kB / 408.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 2.204e-06/0.3346, allocations: 0 / 408.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001701/0.3363, allocations: 0.6677 MB / 408.8 MB, free: 7.48 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.54e-05/0.3364, allocations: 83.28 kB / 408.9 MB, free: 7.383 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009353/0.3373, allocations: 0.7939 MB / 409.7 MB, free: 6.93 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.554e-05/0.3373, allocations: 34.73 kB / 409.7 MB, free: 6.891 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003332/0.3377, allocations: 446.4 kB / 410.2 MB, free: 6.5 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.337e-05/0.3378, allocations: 85.08 kB / 410.2 MB, free: 6.426 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.922e-05/0.3379, allocations: 55.16 kB / 410.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001159/0.338, allocations: 324.1 kB / 410.6 MB, free: 6.07 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001427/0.3381, allocations: 65.02 kB / 410.7 MB, free: 6.043 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001988/0.3383, allocations: 148.5 kB / 410.8 MB, free: 5.91 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003464/0.3387, allocations: 224.3 kB / 411 MB, free: 5.746 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.3387, allocations: 5.375 kB / 411 MB, free: 5.742 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006258/0.3393, allocations: 408.6 kB / 411.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.775e-05/0.3394, allocations: 6.906 kB / 411.4 MB, free: 5.527 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.287e-05/0.3394, allocations: 17.41 kB / 411.5 MB, free: 5.523 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003806/0.3398, allocations: 137.7 kB / 411.6 MB, free: 5.473 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.34, allocations: 44.72 kB / 411.6 MB, free: 5.453 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006109/0.3406, allocations: 0.7103 MB / 412.3 MB, free: 4.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003053/0.3409, allocations: 28.66 kB / 412.4 MB, free: 4.816 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.557e-05/0.341, allocations: 12.72 kB / 412.4 MB, free: 4.816 MB / 334.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.0002326/0.3412, allocations: 203.2 kB / 412.6 MB, free: 4.645 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.3413, allocations: 110.5 kB / 412.7 MB, free: 4.586 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007562/0.3421, allocations: 411.9 kB / 413.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.3421, allocations: 2.5 kB / 413.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.3421, allocations: 0 / 413.1 MB, free: 4.352 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.288e-06/0.3421, allocations: 4 kB / 413.1 MB, free: 4.348 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000621/0.3428, allocations: 0.5087 MB / 413.6 MB, free: 3.938 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-05/0.3428, allocations: 19.28 kB / 413.6 MB, free: 3.93 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.3429, allocations: 18.47 kB / 413.6 MB, free: 3.926 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002701/0.3432, allocations: 136.8 kB / 413.8 MB, free: 3.875 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.049e-05/0.3432, allocations: 12.41 kB / 413.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005917/0.3438, allocations: 0.6985 MB / 414.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3439, allocations: 0 / 414.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005629/0.3444, allocations: 461.8 kB / 414.9 MB, free: 2.957 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.3447, allocations: 180.8 kB / 415.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.481e-05/0.3448, allocations: 0 / 415.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002204/0.345, allocations: 7.219 kB / 415.1 MB, free: 2.785 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.267e-05/0.345, allocations: 20.08 kB / 415.1 MB, free: 2.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.969e-05/0.3451, allocations: 8.844 kB / 415.2 MB, free: 2.773 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0006173/0.3457, allocations: 0.5452 MB / 415.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3457, allocations: 0 / 415.7 MB, free: 2.449 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006288/0.3463, allocations: 189.3 kB / 415.9 MB, free: 2.422 MB / 334.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.00129/0.3476, allocations: 1.194 MB / 417.1 MB, free: 1.5 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005746/0.3482, allocations: 291 kB / 417.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3482, allocations: 0 / 417.4 MB, free: 1.336 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002813/0.3485, allocations: 177.6 kB / 417.5 MB, free: 1.223 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006055/0.3491, allocations: 139.3 kB / 417.7 MB, free: 1.145 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006767/0.3559, allocations: 5.338 MB / 423 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000472/0.3564, allocations: 0.9413 MB / 424 MB, free: 12.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003007/0.3567, allocations: 106.7 kB / 424.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003328/0.3571, allocations: 311.3 kB / 424.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of SimCode: time 7.11e-07/0.3571, allocations: 0 / 424.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04662/0.4037, allocations: 18.32 MB / 442.7 MB, free: 9.555 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.34/13.74, allocations: 3.938 kB / 442.7 MB, free: 9.551 MB / 366.1 MB (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches