Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001522/0.001522, allocations: 112.5 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001653/0.001653, allocations: 205.2 kB / 24.52 MB, free: 4.156 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001453/0.001453, allocations: 48.02 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2295/0.231, allocations: 53.36 MB / 431.9 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.006212/0.2372, allocations: 5.332 MB / 437.2 MB, free: 1.621 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0108/0.248, allocations: 9.165 MB / 446.4 MB, free: 8.414 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007561/0.2487, allocations: 55.38 kB / 446.5 MB, free: 8.359 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001074/0.2498, allocations: 401.4 kB / 446.8 MB, free: 7.965 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002541/0.2523, allocations: 0.8459 MB / 447.7 MB, free: 7.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001609/0.254, allocations: 0.5987 MB / 448.3 MB, free: 6.512 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002651/0.2566, allocations: 1.729 MB / 450 MB, free: 4.777 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002371/0.2568, allocations: 103.3 kB / 450.1 MB, free: 4.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004532/0.2573, allocations: 322.6 kB / 450.4 MB, free: 4.344 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000455/0.2578, allocations: 329.9 kB / 450.8 MB, free: 4.02 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.567e-05/0.2578, allocations: 28 kB / 450.8 MB, free: 3.992 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001512/0.2593, allocations: 0.6594 MB / 451.4 MB, free: 3.332 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.797e-05/0.2594, allocations: 111.3 kB / 451.6 MB, free: 3.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003416/0.2598, allocations: 401.5 kB / 451.9 MB, free: 2.828 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001644/0.2614, allocations: 1.221 MB / 453.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2614, allocations: 0 / 453.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2614, allocations: 0 / 453.2 MB, free: 1.602 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.2614, allocations: 0 / 453.2 MB, free: 1.602 MB / 350.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.001928/0.2634, allocations: 1.238 MB / 454.4 MB, free: 336 kB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.2634, allocations: 12.03 kB / 454.4 MB, free: 324 kB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.645e-05/0.2634, allocations: 8.688 kB / 454.4 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.862e-05/0.2635, allocations: 66.67 kB / 454.5 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002678/0.2637, allocations: 132.2 kB / 454.6 MB, free: 108 kB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001277/0.265, allocations: 0.7806 MB / 455.4 MB, free: 15.26 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.153e-05/0.265, allocations: 20.5 kB / 455.4 MB, free: 15.24 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.936e-05/0.2651, allocations: 24 kB / 455.4 MB, free: 15.22 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004987/0.2656, allocations: 307.8 kB / 455.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.2656, allocations: 7.984 kB / 455.8 MB, free: 14.9 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.841e-05/0.2656, allocations: 8 kB / 455.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.119e-05/0.2656, allocations: 8 kB / 455.8 MB, free: 14.89 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004068/0.2661, allocations: 234 kB / 456 MB, free: 14.66 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001717/0.2678, allocations: 1.16 MB / 457.2 MB, free: 13.43 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003532/0.2681, allocations: 176.1 kB / 457.3 MB, free: 13.25 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.2684, allocations: 197.4 kB / 457.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006462/0.2749, allocations: 3.119 MB / 460.6 MB, free: 9.914 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.2749, allocations: 38.56 kB / 460.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.023e-06/0.2749, allocations: 0 / 460.7 MB, free: 9.867 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001549/0.2765, allocations: 0.5792 MB / 461.3 MB, free: 9.281 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.99e-05/0.2765, allocations: 81.11 kB / 461.3 MB, free: 9.184 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009349/0.2775, allocations: 0.7948 MB / 462.1 MB, free: 8.371 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.952e-05/0.2775, allocations: 33.7 kB / 462.2 MB, free: 8.332 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003684/0.2779, allocations: 449 kB / 462.6 MB, free: 7.891 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.959e-05/0.2779, allocations: 83.27 kB / 462.7 MB, free: 7.809 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.491e-05/0.278, allocations: 57.92 kB / 462.7 MB, free: 7.746 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.2782, allocations: 317.9 kB / 463.1 MB, free: 7.43 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001559/0.2783, allocations: 68.2 kB / 463.1 MB, free: 7.363 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.2785, allocations: 145.9 kB / 463.3 MB, free: 7.188 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000392/0.2789, allocations: 228.5 kB / 463.5 MB, free: 6.934 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.56e-06/0.2789, allocations: 4 kB / 463.5 MB, free: 6.93 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.000616/0.2795, allocations: 417.3 kB / 463.9 MB, free: 6.512 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.2796, allocations: 8 kB / 463.9 MB, free: 6.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.765e-05/0.2796, allocations: 12 kB / 463.9 MB, free: 6.492 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003527/0.2799, allocations: 137.1 kB / 464.1 MB, free: 6.355 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001653/0.2801, allocations: 39.91 kB / 464.1 MB, free: 6.316 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006685/0.2808, allocations: 0.7073 MB / 464.8 MB, free: 5.586 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.281, allocations: 23.84 kB / 464.8 MB, free: 5.562 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.352e-05/0.281, allocations: 16 kB / 464.8 MB, free: 5.547 MB / 366.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.0002377/0.2813, allocations: 204.4 kB / 465 MB, free: 5.34 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001213/0.2814, allocations: 107.3 kB / 465.1 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007516/0.2821, allocations: 398.2 kB / 465.5 MB, free: 4.836 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.508e-06/0.2821, allocations: 7.938 kB / 465.5 MB, free: 4.828 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.858e-06/0.2822, allocations: 4 kB / 465.5 MB, free: 4.824 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.2822, allocations: 3.984 kB / 465.5 MB, free: 4.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005708/0.2827, allocations: 490.6 kB / 466 MB, free: 4.301 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.21e-05/0.2828, allocations: 16 kB / 466 MB, free: 4.285 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001146/0.2829, allocations: 15.98 kB / 466.1 MB, free: 4.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002715/0.2831, allocations: 144.6 kB / 466.2 MB, free: 4.125 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.959e-05/0.2832, allocations: 12 kB / 466.2 MB, free: 4.113 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006319/0.2838, allocations: 0.6954 MB / 466.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2838, allocations: 0 / 466.9 MB, free: 3.395 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005877/0.2844, allocations: 460.4 kB / 467.4 MB, free: 2.926 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001758/0.2846, allocations: 95.31 kB / 467.4 MB, free: 2.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.498e-05/0.2846, allocations: 4 kB / 467.4 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000206/0.2848, allocations: 8 kB / 467.5 MB, free: 2.82 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.123e-05/0.2849, allocations: 15.91 kB / 467.5 MB, free: 2.805 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.93e-05/0.2849, allocations: 11.94 kB / 467.5 MB, free: 2.793 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006194/0.2855, allocations: 0.5423 MB / 468 MB, free: 2.242 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.2855, allocations: 0 / 468 MB, free: 2.242 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005603/0.2861, allocations: 203.6 kB / 468.2 MB, free: 2.043 MB / 366.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.001287/0.2874, allocations: 1.176 MB / 469.4 MB, free: 0.8398 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005596/0.2879, allocations: 271.4 kB / 469.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.2879, allocations: 0 / 469.7 MB, free: 0.5625 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002925/0.2882, allocations: 171.3 kB / 469.8 MB, free: 392 kB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007182/0.2889, allocations: 160.7 kB / 470 MB, free: 228 kB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006909/0.2959, allocations: 5.333 MB / 475.3 MB, free: 10.7 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005755/0.2964, allocations: 0.9413 MB / 476.3 MB, free: 9.734 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002898/0.2967, allocations: 110.7 kB / 476.4 MB, free: 9.621 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.2971, allocations: 315.3 kB / 476.7 MB, free: 9.312 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.2971, allocations: 0 / 476.7 MB, free: 9.312 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04667/0.3437, allocations: 18.73 MB / 495.4 MB, free: 6.812 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.78/14.12, allocations: 3.281 kB / 495.4 MB, free: 6.812 MB / 398.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 16.538888223003596]