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.001135/0.001135, allocations: 109.5 kB / 17.68 MB, free: 5.332 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.00114/0.00114, allocations: 190.9 kB / 18.62 MB, free: 4.41 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.317/1.317, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001011/0.001012, allocations: 56.14 kB / 302.1 MB, free: 5.148 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1071/0.1082, allocations: 49.44 MB / 351.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00641/0.1146, allocations: 5.284 MB / 356.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0107/0.1254, allocations: 9.068 MB / 365.8 MB, free: 5.266 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008583/0.1263, allocations: 39.69 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001093/0.1274, allocations: 389.5 kB / 366.3 MB, free: 4.844 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003009/0.1304, allocations: 0.8302 MB / 367.1 MB, free: 4.008 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001851/0.1323, allocations: 0.5948 MB / 367.7 MB, free: 3.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002554/0.1349, allocations: 1.693 MB / 369.4 MB, free: 1.711 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002876/0.1352, allocations: 159.1 kB / 369.5 MB, free: 1.539 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003802/0.1356, allocations: 302.5 kB / 369.8 MB, free: 1.242 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003517/0.1359, allocations: 322 kB / 370.1 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.327e-05/0.136, allocations: 32 kB / 370.2 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001346/0.1373, allocations: 0.6477 MB / 370.8 MB, free: 252 kB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.875e-05/0.1374, allocations: 103.3 kB / 370.9 MB, free: 148 kB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.1989/0.3364, allocations: 403.8 kB / 371.3 MB, free: 12.47 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00226/0.3387, allocations: 1.197 MB / 372.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.3387, allocations: 0 / 372.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.3387, allocations: 1.188 kB / 372.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.228e-05/0.3387, allocations: 0 / 372.5 MB, free: 12.41 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.001774/0.3405, allocations: 1.275 MB / 373.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.3406, allocations: 10.44 kB / 373.8 MB, free: 11.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001407/0.3407, allocations: 112.1 kB / 373.9 MB, free: 11.55 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00116/0.3419, allocations: 0.8529 MB / 374.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.3419, allocations: 21 kB / 374.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.147e-05/0.342, allocations: 29.55 kB / 374.8 MB, free: 11.18 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005438/0.3425, allocations: 305.1 kB / 375.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.273e-05/0.3425, allocations: 1.188 kB / 375.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.931e-05/0.3426, allocations: 10.62 kB / 375.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.277e-05/0.3426, allocations: 13.09 kB / 375.1 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004049/0.343, allocations: 236.2 kB / 375.4 MB, free: 11.13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001579/0.3446, allocations: 1.178 MB / 376.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.3449, allocations: 203.1 kB / 376.7 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002929/0.3452, allocations: 226.4 kB / 377 MB, free: 10.67 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00719/0.3524, allocations: 8.564 MB / 385.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.864e-05/0.3525, allocations: 33.41 kB / 385.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=23): time 2.024e-06/0.3525, allocations: 0 / 385.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=23): time 0.001492/0.354, allocations: 0.6587 MB / 386.2 MB, free: 3.137 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.229e-05/0.354, allocations: 81.3 kB / 386.3 MB, free: 3.043 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009111/0.355, allocations: 0.7941 MB / 387.1 MB, free: 2.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.466e-05/0.355, allocations: 30.67 kB / 387.1 MB, free: 2.867 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002772/0.3553, allocations: 446.8 kB / 387.6 MB, free: 2.559 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.457e-05/0.3553, allocations: 77.69 kB / 387.6 MB, free: 2.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.319e-05/0.3554, allocations: 59.81 kB / 387.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 4.708e-05/0.3555, allocations: 316.1 kB / 388 MB, free: 2.156 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001362/0.3556, allocations: 66.61 kB / 388.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001705/0.3558, allocations: 155 kB / 388.2 MB, free: 2.016 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002898/0.3561, allocations: 226.3 kB / 388.4 MB, free: 1.867 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.055e-06/0.3561, allocations: 5.031 kB / 388.4 MB, free: 1.863 MB / 302.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005449/0.3567, allocations: 412.5 kB / 388.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3567, allocations: 6.062 kB / 388.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.006e-05/0.3567, allocations: 14.78 kB / 388.9 MB, free: 1.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003511/0.3571, allocations: 144.2 kB / 389 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.3572, allocations: 35.58 kB / 389 MB, free: 1.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004898/0.3577, allocations: 0.7018 MB / 389.7 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002868/0.358, allocations: 34.88 kB / 389.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.171e-05/0.3581, allocations: 17.19 kB / 389.8 MB, free: 1.027 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.0001948/0.3583, allocations: 199.1 kB / 390 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001053/0.3584, allocations: 108.2 kB / 390.1 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006828/0.3591, allocations: 405.8 kB / 390.5 MB, free: 0.6211 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.991e-06/0.3591, allocations: 6.5 kB / 390.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.16e-06/0.3591, allocations: 0 / 390.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3591, allocations: 2.578 kB / 390.5 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005641/0.3597, allocations: 0.5096 MB / 391 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.207e-05/0.3597, allocations: 12.73 kB / 391 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00011/0.3599, allocations: 19.02 kB / 391 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002654/0.3601, allocations: 132 kB / 391.2 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.074e-05/0.3602, allocations: 9.5 kB / 391.2 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005385/0.3607, allocations: 0.7124 MB / 391.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3607, allocations: 3.484 kB / 391.9 MB, free: 15.66 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005528/0.3613, allocations: 450 kB / 392.3 MB, free: 15.39 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002176/0.3615, allocations: 181.8 kB / 392.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.93e-05/0.3616, allocations: 5.797 kB / 392.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002033/0.3618, allocations: 7.703 kB / 392.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.544e-05/0.3619, allocations: 17.59 kB / 392.5 MB, free: 15.23 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.098e-05/0.3619, allocations: 7.781 kB / 392.6 MB, free: 15.23 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006476/0.3625, allocations: 0.5424 MB / 393.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.3625, allocations: 0 / 393.1 MB, free: 14.99 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000652/0.3632, allocations: 192.3 kB / 393.3 MB, free: 14.96 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.0004859/0.3637, allocations: 303.4 kB / 393.6 MB, free: 14.84 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0005579/0.3643, allocations: 286.1 kB / 393.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.394e-06/0.3643, allocations: 1.094 kB / 393.9 MB, free: 14.71 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002846/0.3646, allocations: 175.8 kB / 394 MB, free: 14.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007349/0.3653, allocations: 171.8 kB / 394.2 MB, free: 14.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002334/0.3677, allocations: 1.205 MB / 395.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004456/0.3681, allocations: 0.938 MB / 396.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0002883/0.3684, allocations: 110.2 kB / 396.5 MB, free: 13.16 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.316e-05/0.3685, allocations: 51.25 kB / 396.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of SimCode: time 4.01e-07/0.3685, allocations: 0 / 396.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of Templates: time 0.01658/0.3851, allocations: 9.06 MB / 405.6 MB, free: 8.84 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 -s cvode -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/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