Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008055/0.0008054, allocations: 95.81 kB / 17.01 MB, free: 6.078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008953/0.0008953, allocations: 193.2 kB / 17.91 MB, free: 5.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 227.7 MB / 246.4 MB, free: 9.828 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004005/0.0004007, allocations: 4 kB / 307.1 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1195/0.12, allocations: 51.52 MB / 358.6 MB, free: 13.45 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004488/0.1245, allocations: 4.604 MB / 363.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.009489/0.134, allocations: 8.311 MB / 371.5 MB, free: 0.4922 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005438/0.1346, allocations: 19.88 kB / 371.6 MB, free: 484 kB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007464/0.1353, allocations: 302.4 kB / 371.9 MB, free: 180 kB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.2085/0.3439, allocations: 0.6571 MB / 372.5 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001446/0.3454, allocations: 445.2 kB / 372.9 MB, free: 8.977 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002701/0.3481, allocations: 1.616 MB / 374.6 MB, free: 8.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002592/0.3483, allocations: 145.6 kB / 374.7 MB, free: 8.863 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004059/0.3488, allocations: 283.7 kB / 375 MB, free: 8.777 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003657/0.3491, allocations: 287.1 kB / 375.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.612e-05/0.3492, allocations: 16.75 kB / 375.3 MB, free: 8.676 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001435/0.3506, allocations: 0.5933 MB / 375.9 MB, free: 8.656 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.301e-05/0.3507, allocations: 83.36 kB / 376 MB, free: 8.621 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001597/0.3509, allocations: 204.8 kB / 376.2 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008468/0.3518, allocations: 0.858 MB / 377 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.3518, allocations: 2.5 kB / 377 MB, free: 8.453 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.794e-06/0.3518, allocations: 0 / 377 MB, free: 8.453 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.04e-05/0.3518, allocations: 0 / 377 MB, free: 8.453 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.001363/0.3532, allocations: 1.152 MB / 378.2 MB, free: 7.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.534e-05/0.3532, allocations: 13.19 kB / 378.2 MB, free: 7.676 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002553/0.3535, allocations: 127.5 kB / 378.3 MB, free: 7.621 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3546, allocations: 0.8064 MB / 379.1 MB, free: 7.301 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.3546, allocations: 19.27 kB / 379.1 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.828e-05/0.3547, allocations: 25.44 kB / 379.2 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004895/0.3552, allocations: 310.2 kB / 379.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.06e-05/0.3552, allocations: 0 / 379.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.859e-05/0.3552, allocations: 10.81 kB / 379.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.213e-05/0.3552, allocations: 9.875 kB / 379.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003993/0.3556, allocations: 235.2 kB / 379.7 MB, free: 7.234 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00156/0.3572, allocations: 1.188 MB / 380.9 MB, free: 6.797 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003412/0.3576, allocations: 207.3 kB / 381.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003023/0.3579, allocations: 226.6 kB / 381.3 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00686/0.3647, allocations: 8.903 MB / 390.2 MB, free: 15.07 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.419e-05/0.3648, allocations: 35.03 kB / 390.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.843e-06/0.3648, allocations: 0.5938 kB / 390.3 MB, free: 15.03 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001545/0.3664, allocations: 0.6754 MB / 390.9 MB, free: 14.81 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.3664, allocations: 79.7 kB / 391 MB, free: 14.71 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008568/0.3673, allocations: 0.7893 MB / 391.8 MB, free: 14.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.3673, allocations: 29.39 kB / 391.8 MB, free: 14.54 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000334/0.3677, allocations: 443.1 kB / 392.3 MB, free: 14.41 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.01e-05/0.3677, allocations: 78.28 kB / 392.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.448e-05/0.3678, allocations: 4.375 kB / 392.3 MB, free: 14.36 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001194/0.3679, allocations: 321 kB / 392.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000143/0.368, allocations: 75.03 kB / 392.7 MB, free: 14.05 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001759/0.3682, allocations: 144.5 kB / 392.9 MB, free: 13.95 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001668/0.3684, allocations: 91.91 kB / 393 MB, free: 13.95 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.3684, allocations: 1.219 kB / 393 MB, free: 13.95 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000616/0.369, allocations: 412.5 kB / 393.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.3691, allocations: 5.688 kB / 393.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.126e-05/0.3691, allocations: 16.8 kB / 393.4 MB, free: 13.84 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003284/0.3694, allocations: 141.3 kB / 393.5 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001546/0.3696, allocations: 31.88 kB / 393.6 MB, free: 13.82 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006194/0.3702, allocations: 0.7132 MB / 394.3 MB, free: 13.29 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000316/0.3705, allocations: 35.73 kB / 394.3 MB, free: 13.27 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.537e-05/0.3706, allocations: 12.09 kB / 394.3 MB, free: 13.27 MB / 318.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of prepare postOptimizeDAE: time 0.0002547/0.3709, allocations: 203.2 kB / 394.5 MB, free: 13.15 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001248/0.371, allocations: 106 kB / 394.6 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007784/0.3718, allocations: 410.2 kB / 395 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.871e-06/0.3718, allocations: 2.5 kB / 395 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.3718, allocations: 3.375 kB / 395 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.3718, allocations: 0 / 395 MB, free: 13.01 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006148/0.3724, allocations: 0.5148 MB / 395.5 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.412e-05/0.3725, allocations: 12.22 kB / 395.6 MB, free: 12.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001112/0.3726, allocations: 28.7 kB / 395.6 MB, free: 12.8 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002521/0.3728, allocations: 128.3 kB / 395.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.3729, allocations: 8.656 kB / 395.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005325/0.3734, allocations: 0.6985 MB / 396.4 MB, free: 12.27 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.747e-06/0.3734, allocations: 4.766 kB / 396.4 MB, free: 12.26 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005613/0.374, allocations: 453.9 kB / 396.9 MB, free: 12.07 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.3742, allocations: 178.2 kB / 397 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.347e-05/0.3743, allocations: 8.234 kB / 397 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002043/0.3745, allocations: 8.078 kB / 397 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.094e-05/0.3746, allocations: 22.53 kB / 397.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.3746, allocations: 9.25 kB / 397.1 MB, free: 11.91 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006126/0.3752, allocations: 0.5314 MB / 397.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3752, allocations: 0 / 397.6 MB, free: 11.8 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006604/0.3759, allocations: 195.9 kB / 397.8 MB, free: 11.78 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 11} Notification: Performance of Backend phase and start with SimCode phase: time 0.0004715/0.3764, allocations: 279.6 kB / 398.1 MB, free: 11.66 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000544/0.3769, allocations: 277.2 kB / 398.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3769, allocations: 0 / 398.3 MB, free: 11.58 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002788/0.3772, allocations: 190.4 kB / 398.5 MB, free: 11.49 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007698/0.378, allocations: 154.8 kB / 398.7 MB, free: 11.46 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001873/0.3799, allocations: 1.394 MB / 400.1 MB, free: 10.63 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004369/0.3803, allocations: 0.9389 MB / 401 MB, free: 9.824 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003781/0.3807, allocations: 114.1 kB / 401.1 MB, free: 9.758 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.041e-05/0.3808, allocations: 52.91 kB / 401.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of SimCode: time 2.61e-07/0.3808, allocations: 0 / 401.2 MB, free: 9.746 MB / 318.1 MB Notification: Performance of Templates: time 0.01617/0.397, allocations: 8.529 MB / 409.7 MB, free: 3.699 MB / 318.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.makefile (rm -f Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & ./Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches