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: translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") translateModel(Modelica.Electrical.Spice3.Examples.CascodeCircuit,tolerance=1e-07,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|J2.D.v|RC.v|J1.D.v",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009533/0.0009533, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001131/0.001131, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.337/1.337, allocations: 223.3 MB / 241.6 MB, free: 14.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000266/0.000266, allocations: 12.59 kB / 301.4 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09057/0.09085, allocations: 50.42 MB / 351.8 MB, free: 3.48 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004792/0.09568, allocations: 4.89 MB / 356.7 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.01085/0.1066, allocations: 9.079 MB / 365.8 MB, free: 5.449 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007022/0.1073, allocations: 19.88 kB / 365.8 MB, free: 5.43 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001128/0.1085, allocations: 342.2 kB / 366.2 MB, free: 5.094 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002847/0.1113, allocations: 0.691 MB / 366.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00174/0.1131, allocations: 474 kB / 367.3 MB, free: 3.934 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002561/0.1157, allocations: 1.654 MB / 369 MB, free: 2.273 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000345/0.116, allocations: 147.6 kB / 369.1 MB, free: 2.113 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004626/0.1165, allocations: 290.4 kB / 369.4 MB, free: 1.828 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000466/0.117, allocations: 302 kB / 369.7 MB, free: 1.531 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.185e-05/0.1171, allocations: 16 kB / 369.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001509/0.1186, allocations: 0.6437 MB / 370.3 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001007/0.1187, allocations: 91.31 kB / 370.4 MB, free: 0.7812 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004246/0.1191, allocations: 415.2 kB / 370.8 MB, free: 376 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1877/0.3068, allocations: 1.143 MB / 372 MB, free: 12.28 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.472e-06/0.3069, allocations: 1.438 kB / 372 MB, free: 12.28 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.636e-06/0.3069, allocations: 0 / 372 MB, free: 12.28 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.421e-05/0.3069, allocations: 3.828 kB / 372 MB, free: 12.28 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.002551/0.3095, allocations: 1.141 MB / 373.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3095, allocations: 13.47 kB / 373.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002882/0.3098, allocations: 112.6 kB / 373.3 MB, free: 11.45 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001621/0.3115, allocations: 0.8501 MB / 374.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.804e-05/0.3115, allocations: 21.31 kB / 374.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.263e-05/0.3116, allocations: 25.22 kB / 374.2 MB, free: 11.09 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000666/0.3123, allocations: 320.2 kB / 374.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.3123, allocations: 0 / 374.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.156e-05/0.3123, allocations: 8.875 kB / 374.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.858e-05/0.3124, allocations: 11.53 kB / 374.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004901/0.3129, allocations: 234.7 kB / 374.7 MB, free: 11.04 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002263/0.3151, allocations: 1.189 MB / 375.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003707/0.3155, allocations: 201.8 kB / 376.1 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003431/0.3159, allocations: 225.1 kB / 376.3 MB, free: 10.57 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008224/0.3241, allocations: 8.592 MB / 384.9 MB, free: 3.277 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.298e-05/0.3242, allocations: 31.75 kB / 384.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 3.106e-06/0.3242, allocations: 0 / 384.9 MB, free: 3.238 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001884/0.3261, allocations: 0.6649 MB / 385.6 MB, free: 3.031 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.682e-05/0.3261, allocations: 81.25 kB / 385.7 MB, free: 2.938 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00147/0.3276, allocations: 0.8053 MB / 386.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.777e-05/0.3277, allocations: 30.7 kB / 386.5 MB, free: 2.754 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003449/0.328, allocations: 441.6 kB / 387 MB, free: 2.629 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.948e-05/0.3281, allocations: 82.39 kB / 387 MB, free: 2.578 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.827e-05/0.3282, allocations: 27.09 kB / 387.1 MB, free: 2.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.792e-05/0.3282, allocations: 317.9 kB / 387.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001471/0.3284, allocations: 68.58 kB / 387.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001848/0.3286, allocations: 152.9 kB / 387.6 MB, free: 2.164 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003747/0.3289, allocations: 229.3 kB / 387.8 MB, free: 2.082 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.482e-06/0.329, allocations: 9.062 kB / 387.8 MB, free: 2.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0008088/0.3298, allocations: 410.9 kB / 388.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.339e-05/0.3298, allocations: 6.094 kB / 388.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.727e-05/0.3298, allocations: 17.12 kB / 388.2 MB, free: 1.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004252/0.3303, allocations: 140.7 kB / 388.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001841/0.3305, allocations: 37.62 kB / 388.4 MB, free: 1.965 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000593/0.3311, allocations: 0.7105 MB / 389.1 MB, free: 1.441 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000509/0.3316, allocations: 33.19 kB / 389.2 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.801e-05/0.3317, allocations: 12.53 kB / 389.2 MB, free: 1.422 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.0003592/0.332, allocations: 197.3 kB / 389.4 MB, free: 1.309 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.3323, allocations: 102.1 kB / 389.5 MB, free: 1.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009143/0.3332, allocations: 425.8 kB / 389.9 MB, free: 1.172 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.226e-06/0.3332, allocations: 8.672 kB / 389.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.3332, allocations: 1.438 kB / 389.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.3332, allocations: 0 / 389.9 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008866/0.3341, allocations: 0.5076 MB / 390.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.023e-05/0.3342, allocations: 12.94 kB / 390.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001313/0.3343, allocations: 17.64 kB / 390.4 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002977/0.3346, allocations: 135.8 kB / 390.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.287e-05/0.3346, allocations: 4.906 kB / 390.6 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004832/0.3351, allocations: 0.707 MB / 391.3 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.934e-06/0.3351, allocations: 0 / 391.3 MB, free: 280 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006493/0.3358, allocations: 462.2 kB / 391.7 MB, free: 16 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003622/0.3362, allocations: 169.8 kB / 391.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002051/0.3364, allocations: 9.156 kB / 391.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003268/0.3367, allocations: 9.328 kB / 391.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.98e-05/0.3368, allocations: 14.7 kB / 391.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.3368, allocations: 8.719 kB / 391.9 MB, free: 15.84 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001021/0.3379, allocations: 0.5434 MB / 392.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3379, allocations: 1.062 kB / 392.5 MB, free: 15.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000839/0.3387, allocations: 196.5 kB / 392.7 MB, free: 15.57 MB / 318.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.0007971/0.3395, allocations: 298.6 kB / 393 MB, free: 15.45 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0006937/0.3402, allocations: 284.3 kB / 393.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.266e-06/0.3402, allocations: 1.281 kB / 393.2 MB, free: 15.32 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003259/0.3406, allocations: 182.8 kB / 393.4 MB, free: 15.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009967/0.3416, allocations: 155.2 kB / 393.6 MB, free: 15.17 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00245/0.344, allocations: 1.497 MB / 395.1 MB, free: 14.27 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005753/0.3446, allocations: 0.9371 MB / 396 MB, free: 13.56 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004501/0.3451, allocations: 111.9 kB / 396.1 MB, free: 13.53 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.635e-05/0.3452, allocations: 50.22 kB / 396.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of SimCode: time 1.193e-06/0.3452, allocations: 0 / 396.2 MB, free: 13.52 MB / 318.1 MB Notification: Performance of Templates: time 0.01861/0.3638, allocations: 8.719 MB / 404.9 MB, free: 9.418 MB / 318.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (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 & ./Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins/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