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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000833/0.000833, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0008081/0.0008081, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8766/0.8766, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.814e-06/1.814e-06, allocations: 0 / 324.5 MB, free: 15.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.958e-05/2.139e-05, allocations: 2.281 kB / 324.5 MB, free: 15.88 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.00591/0.005931, allocations: 4.656 MB / 329.2 MB, free: 11.2 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.00967/0.0156, allocations: 7.874 MB / 337 MB, free: 3.289 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004984/0.0161, allocations: 59.31 kB / 337.1 MB, free: 3.23 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0008225/0.01692, allocations: 345.6 kB / 337.4 MB, free: 2.891 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001727/0.01865, allocations: 0.8843 MB / 338.3 MB, free: 2 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.01969, allocations: 0.6101 MB / 338.9 MB, free: 1.387 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001445/0.02113, allocations: 1.79 MB / 340.7 MB, free: 15.59 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.02154, allocations: 95.33 kB / 340.8 MB, free: 15.48 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003578/0.0219, allocations: 454.8 kB / 341.3 MB, free: 15.04 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002093/0.02211, allocations: 227.2 kB / 341.5 MB, free: 14.82 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 3.958e-05/0.02215, allocations: 32 kB / 341.5 MB, free: 14.79 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006874/0.02284, allocations: 0.5774 MB / 342.1 MB, free: 14.21 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 6.051e-05/0.0229, allocations: 103.3 kB / 342.2 MB, free: 14.11 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001479/0.02305, allocations: 231.3 kB / 342.4 MB, free: 13.88 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009171/0.02396, allocations: 1.246 MB / 343.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.02397, allocations: 0 / 343.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.02397, allocations: 0 / 343.7 MB, free: 12.63 MB / 314.7 MB Notification: Performance of Transformations before backend: time 1.144e-05/0.02398, allocations: 0 / 343.7 MB, free: 12.63 MB / 314.7 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.001163/0.02514, allocations: 1.23 MB / 344.9 MB, free: 11.36 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.02518, allocations: 15.98 kB / 344.9 MB, free: 11.35 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.078e-05/0.02523, allocations: 66.72 kB / 345 MB, free: 11.27 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001758/0.02541, allocations: 132.2 kB / 345.1 MB, free: 11.14 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007661/0.02618, allocations: 0.7766 MB / 345.9 MB, free: 10.3 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.691e-05/0.02619, allocations: 20.88 kB / 345.9 MB, free: 10.28 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.592e-05/0.02623, allocations: 27.94 kB / 345.9 MB, free: 10.25 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003442/0.02657, allocations: 337.5 kB / 346.3 MB, free: 9.906 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.728e-06/0.02658, allocations: 3.938 kB / 346.3 MB, free: 9.902 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.068e-05/0.0266, allocations: 16 kB / 346.3 MB, free: 9.887 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.948e-06/0.02661, allocations: 8 kB / 346.3 MB, free: 9.879 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.02687, allocations: 234 kB / 346.5 MB, free: 9.648 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00114/0.02801, allocations: 1.079 MB / 347.6 MB, free: 8.508 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002499/0.02826, allocations: 186.5 kB / 347.8 MB, free: 8.316 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.02848, allocations: 198 kB / 348 MB, free: 8.117 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003743/0.03222, allocations: 3.107 MB / 351.1 MB, free: 4.984 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.32e-05/0.03224, allocations: 46.48 kB / 351.1 MB, free: 4.93 MB / 314.7 MB Notification: Performance of pre-optimization done (n=23): time 1.623e-06/0.03224, allocations: 0 / 351.1 MB, free: 4.93 MB / 314.7 MB Notification: Performance of matching and sorting (n=23): time 0.0009328/0.03318, allocations: 0.5692 MB / 351.7 MB, free: 4.352 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.188e-05/0.03322, allocations: 81.11 kB / 351.8 MB, free: 4.254 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005673/0.03379, allocations: 0.7987 MB / 352.6 MB, free: 3.438 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 1.817e-05/0.0338, allocations: 29.7 kB / 352.6 MB, free: 3.402 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002338/0.03404, allocations: 445 kB / 353 MB, free: 2.965 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.054e-05/0.03408, allocations: 83.31 kB / 353.1 MB, free: 2.883 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-05/0.03414, allocations: 53.94 kB / 353.2 MB, free: 2.824 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.404e-05/0.03421, allocations: 321.9 kB / 353.5 MB, free: 2.504 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.629e-05/0.0343, allocations: 72.2 kB / 353.5 MB, free: 2.434 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.03443, allocations: 175.5 kB / 353.7 MB, free: 2.223 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.03465, allocations: 228.1 kB / 353.9 MB, free: 1.969 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.17e-06/0.03465, allocations: 11.97 kB / 354 MB, free: 1.957 MB / 314.7 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0003776/0.03503, allocations: 405.5 kB / 354.3 MB, free: 1.551 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.254e-05/0.03504, allocations: 4 kB / 354.4 MB, free: 1.547 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.923e-05/0.03506, allocations: 20 kB / 354.4 MB, free: 1.527 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002561/0.03532, allocations: 144.5 kB / 354.5 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.327e-05/0.03541, allocations: 27.98 kB / 354.5 MB, free: 1.359 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004512/0.03586, allocations: 0.7045 MB / 355.2 MB, free: 0.6289 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001283/0.03599, allocations: 31.75 kB / 355.3 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.451e-05/0.03601, allocations: 16 kB / 355.3 MB, free: 0.582 MB / 314.7 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.0001755/0.03619, allocations: 205.8 kB / 355.5 MB, free: 380 kB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.94e-05/0.03626, allocations: 107.3 kB / 355.6 MB, free: 272 kB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004765/0.03673, allocations: 387.5 kB / 356 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.026e-06/0.03674, allocations: 0 / 356 MB, free: 15.88 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.733e-06/0.03674, allocations: 7.922 kB / 356 MB, free: 15.87 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.509e-06/0.03675, allocations: 11.98 kB / 356 MB, free: 15.86 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000384/0.03713, allocations: 462.7 kB / 356.4 MB, free: 15.37 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.267e-05/0.03715, allocations: 16 kB / 356.5 MB, free: 15.35 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.704e-05/0.0372, allocations: 19.92 kB / 356.5 MB, free: 15.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001724/0.03738, allocations: 132.8 kB / 356.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.156e-05/0.03739, allocations: 4 kB / 356.6 MB, free: 15.2 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003727/0.03776, allocations: 0.72 MB / 357.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.03776, allocations: 3.938 kB / 357.3 MB, free: 14.45 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003403/0.0381, allocations: 456 kB / 357.8 MB, free: 13.98 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001001/0.0382, allocations: 95.33 kB / 357.9 MB, free: 13.89 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.249e-05/0.03824, allocations: 8 kB / 357.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001374/0.03838, allocations: 4 kB / 357.9 MB, free: 13.88 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.894e-05/0.03842, allocations: 19.97 kB / 357.9 MB, free: 13.86 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.277e-05/0.03843, allocations: 12.06 kB / 357.9 MB, free: 13.84 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0004047/0.03884, allocations: 0.5423 MB / 358.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of sort global known variables: time 7e-08/0.03884, allocations: 0 / 358.5 MB, free: 13.29 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0003425/0.03918, allocations: 199.6 kB / 358.7 MB, free: 13.1 MB / 330.7 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.0008862/0.04007, allocations: 1.189 MB / 359.8 MB, free: 11.88 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004036/0.04047, allocations: 270.8 kB / 360.1 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.04047, allocations: 0 / 360.1 MB, free: 11.61 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001528/0.04062, allocations: 167.3 kB / 360.3 MB, free: 11.43 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.0411, allocations: 160.3 kB / 360.4 MB, free: 11.27 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004718/0.04581, allocations: 5.322 MB / 365.8 MB, free: 5.758 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002123/0.04603, allocations: 349.3 kB / 366.1 MB, free: 5.391 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001947/0.04622, allocations: 106.7 kB / 366.2 MB, free: 5.281 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002211/0.04644, allocations: 316.4 kB / 366.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of SimCode: time 4.61e-07/0.04644, allocations: 0 / 366.5 MB, free: 4.973 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02884/0.07528, allocations: 18.99 MB / 385.5 MB, free: 2.164 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.137/8.213, allocations: 0 / 385.5 MB, free: 2.164 MB / 346.7 MB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_trunk_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.886950991116464]