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.001425/0.001425, allocations: 108.7 kB / 16.51 MB, free: 6.707 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.001429/0.001429, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.309/1.309, allocations: 222.9 MB / 241.1 MB, free: 15.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001076/0.001076, allocations: 45.92 kB / 300.1 MB, free: 6.211 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0934/0.0945, allocations: 49.44 MB / 349.5 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005591/0.1001, allocations: 5.296 MB / 354.8 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009535/0.1097, allocations: 9.238 MB / 364 MB, free: 6.156 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003349/0.11, allocations: 15.88 kB / 364.1 MB, free: 6.141 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007836/0.1108, allocations: 342.2 kB / 364.4 MB, free: 5.805 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001543/0.1124, allocations: 0.6989 MB / 365.1 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009843/0.1134, allocations: 466 kB / 365.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00196/0.1154, allocations: 1.654 MB / 367.2 MB, free: 2.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002258/0.1156, allocations: 155.6 kB / 367.3 MB, free: 2.816 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002918/0.1159, allocations: 286.5 kB / 367.6 MB, free: 2.535 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002986/0.1162, allocations: 317.9 kB / 367.9 MB, free: 2.223 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.191e-05/0.1163, allocations: 24 kB / 368 MB, free: 2.199 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001065/0.1173, allocations: 0.6398 MB / 368.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.596e-05/0.1174, allocations: 91.33 kB / 368.7 MB, free: 1.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003062/0.1177, allocations: 389.5 kB / 369.1 MB, free: 1.086 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1693/0.2871, allocations: 1.177 MB / 370.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.2871, allocations: 1.5 kB / 370.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2872, allocations: 0 / 370.2 MB, free: 13.92 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.242e-05/0.2872, allocations: 1.219 kB / 370.3 MB, free: 13.92 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.001781/0.289, allocations: 1.27 MB / 371.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.289e-05/0.289, allocations: 11.98 kB / 371.5 MB, free: 13.15 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.478e-05/0.2891, allocations: 62.3 kB / 371.6 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001272/0.2892, allocations: 113.3 kB / 371.7 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001065/0.2903, allocations: 0.8468 MB / 372.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.891e-05/0.2903, allocations: 21.28 kB / 372.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.687e-05/0.2904, allocations: 31.5 kB / 372.6 MB, free: 12.69 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005012/0.2909, allocations: 308.4 kB / 372.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2909, allocations: 0.5 kB / 372.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.747e-05/0.291, allocations: 10.72 kB / 372.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.331e-05/0.291, allocations: 7.938 kB / 372.9 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004085/0.2914, allocations: 232 kB / 373.1 MB, free: 12.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001633/0.293, allocations: 1.189 MB / 374.3 MB, free: 12.22 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000333/0.2934, allocations: 204.4 kB / 374.5 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002948/0.2937, allocations: 224.4 kB / 374.8 MB, free: 12.18 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.009012/0.3027, allocations: 8.566 MB / 383.3 MB, free: 4.887 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.135e-05/0.3028, allocations: 35.39 kB / 383.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.355e-06/0.3028, allocations: 3.094 kB / 383.4 MB, free: 4.848 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001478/0.3042, allocations: 0.6568 MB / 384 MB, free: 4.641 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.3043, allocations: 80.41 kB / 384.1 MB, free: 4.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001382/0.3057, allocations: 0.7956 MB / 384.9 MB, free: 4.402 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.003e-05/0.3057, allocations: 33.36 kB / 384.9 MB, free: 4.371 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003829/0.3061, allocations: 443.2 kB / 385.4 MB, free: 4.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.774e-05/0.3062, allocations: 76.83 kB / 385.4 MB, free: 4.195 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000124/0.3063, allocations: 55.08 kB / 385.5 MB, free: 4.18 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 5.967e-05/0.3064, allocations: 315.3 kB / 385.8 MB, free: 3.875 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002354/0.3067, allocations: 75.77 kB / 385.9 MB, free: 3.871 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002744/0.3069, allocations: 143.8 kB / 386 MB, free: 3.781 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004962/0.3075, allocations: 237 kB / 386.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3075, allocations: 1.531 kB / 386.2 MB, free: 3.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0009341/0.3084, allocations: 406.3 kB / 386.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.562e-05/0.3085, allocations: 6.812 kB / 386.6 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.3e-05/0.3085, allocations: 16.11 kB / 386.7 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005288/0.3091, allocations: 147.5 kB / 386.8 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002529/0.3093, allocations: 35.61 kB / 386.8 MB, free: 3.422 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007524/0.3101, allocations: 0.7121 MB / 387.5 MB, free: 2.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004184/0.3105, allocations: 30.09 kB / 387.6 MB, free: 2.805 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.092e-05/0.3106, allocations: 15.23 kB / 387.6 MB, free: 2.805 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.0003/0.3109, allocations: 193.1 kB / 387.8 MB, free: 2.645 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.3111, allocations: 102.8 kB / 387.9 MB, free: 2.594 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00124/0.3123, allocations: 412.2 kB / 388.3 MB, free: 2.398 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.217e-06/0.3124, allocations: 6.344 kB / 388.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.3124, allocations: 1.859 kB / 388.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-06/0.3124, allocations: 0.6562 kB / 388.3 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008407/0.3132, allocations: 0.501 MB / 388.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.123e-05/0.3133, allocations: 12.81 kB / 388.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001771/0.3135, allocations: 23.7 kB / 388.8 MB, free: 2.078 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004128/0.3139, allocations: 140.1 kB / 389 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.763e-05/0.3139, allocations: 4.844 kB / 389 MB, free: 2.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006896/0.3146, allocations: 0.7088 MB / 389.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.3147, allocations: 1.438 kB / 389.7 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007956/0.3155, allocations: 465.6 kB / 390.1 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002205/0.3157, allocations: 175.8 kB / 390.3 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001364/0.3158, allocations: 1.125 kB / 390.3 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003767/0.3162, allocations: 11.5 kB / 390.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.027e-05/0.3163, allocations: 14.06 kB / 390.3 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.185e-05/0.3164, allocations: 12.38 kB / 390.3 MB, free: 1.004 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008866/0.3173, allocations: 0.5371 MB / 390.9 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.51e-07/0.3173, allocations: 0 / 390.9 MB, free: 0.7695 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009085/0.3182, allocations: 193.8 kB / 391.1 MB, free: 0.7422 MB / 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.001591/0.3198, allocations: 1.173 MB / 392.2 MB, free: 15.92 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0008303/0.3206, allocations: 287 kB / 392.5 MB, free: 15.8 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.3207, allocations: 4.562 kB / 392.5 MB, free: 15.79 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004575/0.3211, allocations: 178.8 kB / 392.7 MB, free: 15.7 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001224/0.3224, allocations: 151.3 kB / 392.9 MB, free: 15.64 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0129/0.3353, allocations: 5.849 MB / 398.7 MB, free: 12.2 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007085/0.336, allocations: 0.9422 MB / 399.6 MB, free: 11.48 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007047/0.3367, allocations: 107.9 kB / 399.7 MB, free: 11.45 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005955/0.3374, allocations: 314 kB / 400.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of SimCode: time 1.914e-06/0.3374, allocations: 2.625 kB / 400.1 MB, free: 11.21 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05112/0.3885, allocations: 17.61 MB / 417.7 MB, free: 12.42 MB / 334.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003062/0.3888, allocations: 236.2 kB / 417.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.163/2.551, allocations: 0 / 417.9 MB, free: 12.17 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 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.mat","/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