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.0008407/0.0008407, allocations: 87.31 kB / 16.31 MB, free: 6.457 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.0009461/0.0009462, allocations: 184.4 kB / 17.21 MB, free: 6.328 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.331/1.331, allocations: 223.3 MB / 241.2 MB, free: 5.41 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002434/0.0002434, allocations: 5.406 kB / 300.8 MB, free: 6.059 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.093/0.09326, allocations: 50.42 MB / 351.2 MB, free: 11.68 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004382/0.09769, allocations: 4.586 MB / 355.8 MB, free: 7.078 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008627/0.1064, allocations: 8.288 MB / 364.1 MB, free: 14.76 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003971/0.1068, allocations: 23.88 kB / 364.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006624/0.1075, allocations: 298.4 kB / 364.4 MB, free: 14.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001537/0.109, allocations: 0.66 MB / 365.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009965/0.11, allocations: 442 kB / 365.5 MB, free: 13.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.002233/0.1123, allocations: 1.58 MB / 367.1 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002683/0.1125, allocations: 135.1 kB / 367.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004233/0.113, allocations: 270.6 kB / 367.5 MB, free: 11.35 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000377/0.1134, allocations: 298.2 kB / 367.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.905e-05/0.1134, allocations: 16 kB / 367.8 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001392/0.1148, allocations: 0.5813 MB / 368.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 8.612e-05/0.1149, allocations: 87.39 kB / 368.5 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002047/0.1151, allocations: 197.1 kB / 368.7 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000869/0.116, allocations: 0.8569 MB / 369.5 MB, free: 9.312 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.162e-06/0.116, allocations: 8 kB / 369.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.193e-06/0.116, allocations: 0 / 369.5 MB, free: 9.305 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.227e-06/0.116, allocations: 0 / 369.5 MB, free: 9.305 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.001713/0.1178, allocations: 1.147 MB / 370.7 MB, free: 8.105 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.1178, allocations: 8.031 kB / 370.7 MB, free: 8.098 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001225/0.1179, allocations: 122.7 kB / 370.8 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001107/0.119, allocations: 0.8129 MB / 371.6 MB, free: 7.109 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.044e-05/0.1191, allocations: 16.56 kB / 371.6 MB, free: 7.094 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.986e-05/0.1191, allocations: 24 kB / 371.6 MB, free: 7.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005205/0.1197, allocations: 307.7 kB / 371.9 MB, free: 6.762 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.1197, allocations: 7.953 kB / 372 MB, free: 6.754 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.928e-05/0.1197, allocations: 12 kB / 372 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.064e-05/0.1197, allocations: 4 kB / 372 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004792/0.1202, allocations: 242.1 kB / 372.2 MB, free: 6.5 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001722/0.122, allocations: 1.191 MB / 373.4 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003994/0.1224, allocations: 194.6 kB / 373.6 MB, free: 5.043 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003888/0.1228, allocations: 231.8 kB / 373.8 MB, free: 4.812 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008308/0.1311, allocations: 8.577 MB / 382.4 MB, free: 10.84 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.1312, allocations: 42.5 kB / 382.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.994e-06/0.1312, allocations: 0 / 382.4 MB, free: 10.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.001635/0.1328, allocations: 0.6738 MB / 383.1 MB, free: 10.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.539e-05/0.1329, allocations: 81.11 kB / 383.2 MB, free: 9.988 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009038/0.1338, allocations: 0.787 MB / 384 MB, free: 9.184 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.539e-05/0.1338, allocations: 29.7 kB / 384 MB, free: 9.148 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004986/0.1343, allocations: 444.6 kB / 384.4 MB, free: 8.711 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.736e-05/0.1344, allocations: 74.84 kB / 384.5 MB, free: 8.637 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.34e-05/0.1344, allocations: 4 kB / 384.5 MB, free: 8.633 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001142/0.1346, allocations: 318 kB / 384.8 MB, free: 8.316 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1347, allocations: 68.2 kB / 384.9 MB, free: 8.25 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002861/0.135, allocations: 154.3 kB / 385 MB, free: 8.066 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001712/0.1352, allocations: 94.61 kB / 385.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.1352, allocations: 0 / 385.1 MB, free: 7.977 MB / 318.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006473/0.1358, allocations: 408.9 kB / 385.5 MB, free: 7.566 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.215e-05/0.1359, allocations: 4 kB / 385.5 MB, free: 7.562 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.047e-05/0.1359, allocations: 16 kB / 385.6 MB, free: 7.547 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003991/0.1363, allocations: 143.4 kB / 385.7 MB, free: 7.406 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001572/0.1365, allocations: 39.91 kB / 385.7 MB, free: 7.367 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006184/0.1371, allocations: 0.7033 MB / 386.4 MB, free: 6.641 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002212/0.1373, allocations: 27.72 kB / 386.5 MB, free: 6.613 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.491e-05/0.1374, allocations: 20.05 kB / 386.5 MB, free: 6.594 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.0002918/0.1377, allocations: 197.8 kB / 386.7 MB, free: 6.391 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.1378, allocations: 102.8 kB / 386.8 MB, free: 6.289 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000946/0.1388, allocations: 425.8 kB / 387.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.001e-06/0.1388, allocations: 0 / 387.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.1388, allocations: 0 / 387.2 MB, free: 5.859 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.1388, allocations: 3.984 kB / 387.2 MB, free: 5.855 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006345/0.1394, allocations: 0.5073 MB / 387.7 MB, free: 5.301 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.14e-05/0.1395, allocations: 16 kB / 387.7 MB, free: 5.285 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001149/0.1396, allocations: 27.92 kB / 387.7 MB, free: 5.258 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004151/0.14, allocations: 132.8 kB / 387.9 MB, free: 5.125 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.948e-05/0.14, allocations: 8 kB / 387.9 MB, free: 5.117 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007662/0.1408, allocations: 0.703 MB / 388.6 MB, free: 4.391 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1408, allocations: 4.062 kB / 388.6 MB, free: 4.387 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005599/0.1414, allocations: 452.2 kB / 389 MB, free: 3.926 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001689/0.1416, allocations: 167.9 kB / 389.2 MB, free: 3.742 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.084e-05/0.1417, allocations: 4 kB / 389.2 MB, free: 3.738 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002064/0.1419, allocations: 11.98 kB / 389.2 MB, free: 3.727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.325e-05/0.142, allocations: 19.94 kB / 389.2 MB, free: 3.707 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.812e-05/0.142, allocations: 8 kB / 389.2 MB, free: 3.699 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0006016/0.1426, allocations: 0.5344 MB / 389.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1426, allocations: 0 / 389.8 MB, free: 3.156 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006162/0.1432, allocations: 195.7 kB / 390 MB, free: 2.965 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.0004445/0.1437, allocations: 271.8 kB / 390.2 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0007156/0.1444, allocations: 279.6 kB / 390.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.1444, allocations: 0 / 390.5 MB, free: 2.402 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000271/0.1447, allocations: 187.3 kB / 390.7 MB, free: 2.207 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007777/0.1455, allocations: 172.7 kB / 390.9 MB, free: 2.039 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001967/0.1475, allocations: 1.38 MB / 392.2 MB, free: 0.6289 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006506/0.1481, allocations: 0.9493 MB / 393.2 MB, free: 15.65 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0003719/0.1485, allocations: 102.7 kB / 393.3 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.098e-05/0.1486, allocations: 51.44 kB / 393.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of SimCode: time 5.31e-07/0.1486, allocations: 0 / 393.3 MB, free: 15.5 MB / 334.1 MB Notification: Performance of Templates: time 0.01618/0.1648, allocations: 8.493 MB / 401.8 MB, free: 7.082 MB / 334.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