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: "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001587/0.001587, allocations: 104.8 kB / 17.05 MB, free: 6.023 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.001936/0.001936, allocations: 196 kB / 18 MB, free: 5.105 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.318/1.318, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001085/0.001086, allocations: 47.94 kB / 350.8 MB, free: 3.781 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2356/0.2367, allocations: 49.44 MB / 400.2 MB, free: 8.43 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.005395/0.2421, allocations: 5.285 MB / 405.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0091/0.2513, allocations: 9.07 MB / 414.6 MB, free: 10.43 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006339/0.2519, allocations: 43.69 kB / 414.6 MB, free: 10.39 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008907/0.2528, allocations: 385.5 kB / 415 MB, free: 10.01 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002071/0.255, allocations: 0.834 MB / 415.8 MB, free: 9.172 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001392/0.2564, allocations: 0.587 MB / 416.4 MB, free: 8.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002412/0.2588, allocations: 1.693 MB / 418.1 MB, free: 6.883 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002979/0.2591, allocations: 167 kB / 418.3 MB, free: 6.707 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004039/0.2595, allocations: 302.6 kB / 418.6 MB, free: 6.41 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003619/0.2599, allocations: 329.9 kB / 418.9 MB, free: 6.086 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.203e-05/0.26, allocations: 28 kB / 418.9 MB, free: 6.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001387/0.2614, allocations: 0.6439 MB / 419.6 MB, free: 5.414 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.675e-05/0.2615, allocations: 107.3 kB / 419.7 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003255/0.2618, allocations: 405.5 kB / 420.1 MB, free: 4.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001455/0.2633, allocations: 1.203 MB / 421.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.149e-06/0.2633, allocations: 0 / 421.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2633, allocations: 0 / 421.3 MB, free: 3.703 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.147e-05/0.2633, allocations: 0 / 421.3 MB, free: 3.703 MB / 334.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.001844/0.2651, allocations: 1.275 MB / 422.5 MB, free: 2.375 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.409e-05/0.2652, allocations: 8.031 kB / 422.6 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.489e-05/0.2653, allocations: 62.72 kB / 422.6 MB, free: 2.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001233/0.2654, allocations: 111.6 kB / 422.7 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001169/0.2666, allocations: 0.8519 MB / 423.6 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.966e-05/0.2666, allocations: 16.56 kB / 423.6 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.137e-05/0.2667, allocations: 27.91 kB / 423.6 MB, free: 1.238 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005037/0.2672, allocations: 311.7 kB / 423.9 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.094e-05/0.2672, allocations: 3.938 kB / 423.9 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.693e-05/0.2672, allocations: 8 kB / 423.9 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.204e-05/0.2673, allocations: 8 kB / 423.9 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003874/0.2677, allocations: 238.1 kB / 424.2 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001662/0.2693, allocations: 1.186 MB / 425.4 MB, free: 15.41 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003537/0.2697, allocations: 198.6 kB / 425.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003139/0.27, allocations: 229.9 kB / 425.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.008188/0.2782, allocations: 8.561 MB / 434.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.2783, allocations: 34.56 kB / 434.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 2.265e-06/0.2783, allocations: 0 / 434.4 MB, free: 4.984 MB / 350.1 MB Notification: Performance of matching and sorting (n=23): time 0.001539/0.2798, allocations: 0.6543 MB / 435 MB, free: 4.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.399e-05/0.2799, allocations: 77.11 kB / 435.1 MB, free: 4.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008336/0.2807, allocations: 0.8064 MB / 435.9 MB, free: 3.383 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.371e-05/0.2808, allocations: 29.7 kB / 435.9 MB, free: 3.348 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003299/0.2811, allocations: 440.7 kB / 436.4 MB, free: 2.91 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.31e-05/0.2812, allocations: 78.83 kB / 436.4 MB, free: 2.832 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.766e-05/0.2813, allocations: 57.84 kB / 436.5 MB, free: 2.77 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.2814, allocations: 321.9 kB / 436.8 MB, free: 2.449 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.2815, allocations: 68.2 kB / 436.9 MB, free: 2.383 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001852/0.2817, allocations: 162.2 kB / 437 MB, free: 2.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.2821, allocations: 226.1 kB / 437.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.2821, allocations: 0 / 437.3 MB, free: 1.941 MB / 350.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0005676/0.2826, allocations: 411.7 kB / 437.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.695e-05/0.2827, allocations: 4 kB / 437.7 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.043e-05/0.2827, allocations: 23.98 kB / 437.7 MB, free: 1.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003443/0.2831, allocations: 135.6 kB / 437.8 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/0.2832, allocations: 39.91 kB / 437.9 MB, free: 1.332 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000582/0.2838, allocations: 0.7083 MB / 438.6 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002182/0.2841, allocations: 23.83 kB / 438.6 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.212e-05/0.2841, allocations: 16.06 kB / 438.6 MB, free: 0.5586 MB / 350.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.0002101/0.2843, allocations: 193.8 kB / 438.8 MB, free: 368 kB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001019/0.2844, allocations: 102.8 kB / 438.9 MB, free: 264 kB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007109/0.2851, allocations: 419.3 kB / 439.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.109e-06/0.2852, allocations: 0 / 439.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.589e-06/0.2852, allocations: 0 / 439.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.527e-06/0.2852, allocations: 0 / 439.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.2857, allocations: 0.5111 MB / 439.8 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.951e-05/0.2857, allocations: 15.98 kB / 439.8 MB, free: 15.27 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001167/0.2859, allocations: 15.98 kB / 439.9 MB, free: 15.25 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002605/0.2861, allocations: 136.7 kB / 440 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.059e-05/0.2862, allocations: 11.98 kB / 440 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005293/0.2867, allocations: 0.6959 MB / 440.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2867, allocations: 7.875 kB / 440.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005278/0.2872, allocations: 462.4 kB / 441.2 MB, free: 13.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002046/0.2874, allocations: 175.8 kB / 441.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.119e-05/0.2875, allocations: 0 / 441.3 MB, free: 13.71 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.2877, allocations: 11.94 kB / 441.3 MB, free: 13.7 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.441e-05/0.2878, allocations: 11.98 kB / 441.3 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.123e-05/0.2878, allocations: 12 kB / 441.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005618/0.2884, allocations: 0.5461 MB / 441.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2884, allocations: 0 / 441.9 MB, free: 13.12 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0005641/0.289, allocations: 191.8 kB / 442.1 MB, free: 12.94 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.001259/0.2902, allocations: 1.182 MB / 443.3 MB, free: 11.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006033/0.2909, allocations: 271.2 kB / 443.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.035e-06/0.2909, allocations: 0 / 443.5 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002898/0.2912, allocations: 186 kB / 443.7 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007476/0.2919, allocations: 168.8 kB / 443.9 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006393/0.2983, allocations: 5.323 MB / 449.2 MB, free: 5.582 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004314/0.2988, allocations: 0.949 MB / 450.2 MB, free: 4.605 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002959/0.2991, allocations: 110.7 kB / 450.3 MB, free: 4.492 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000293/0.2994, allocations: 307.3 kB / 450.6 MB, free: 4.191 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2994, allocations: 0 / 450.6 MB, free: 4.191 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03904/0.3385, allocations: 18.64 MB / 469.2 MB, free: 1.754 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.5/13.84, allocations: 0 / 469.2 MB, free: 1.754 MB / 382.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-07 Modelica_4_0_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > 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