Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.006215/0.006215, allocations: 111.3 kB / 21.97 MB, free: 5.25 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.001523/0.001523, allocations: 206.5 kB / 25.27 MB, free: 3.238 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 207.6 MB / 236.1 MB, free: 9.98 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001697/0.001697, allocations: 51.92 kB / 348 MB, free: 10.04 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2445, allocations: 49.17 MB / 397.1 MB, free: 8.961 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.004993/0.2495, allocations: 5.178 MB / 402.3 MB, free: 5.246 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.009139/0.2586, allocations: 8.707 MB / 411 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001003/0.2596, allocations: 61.19 kB / 411.1 MB, free: 14.8 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00119/0.2608, allocations: 401.3 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003588/0.2644, allocations: 0.8217 MB / 412.3 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002651/0.2671, allocations: 0.5798 MB / 412.9 MB, free: 13.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.003182/0.2702, allocations: 1.659 MB / 414.5 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002847/0.2705, allocations: 105.2 kB / 414.6 MB, free: 13.09 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005954/0.2711, allocations: 294.6 kB / 414.9 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004823/0.2716, allocations: 318.4 kB / 415.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.727e-05/0.2717, allocations: 30.06 kB / 415.3 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001993/0.2737, allocations: 0.5609 MB / 415.8 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001082/0.2738, allocations: 99.23 kB / 415.9 MB, free: 12.56 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004579/0.2742, allocations: 411.7 kB / 416.3 MB, free: 12.29 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001899/0.2761, allocations: 1.204 MB / 417.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.2761, allocations: 4 kB / 417.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2761, allocations: 0 / 417.5 MB, free: 11.48 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.713e-05/0.2762, allocations: 1.438 kB / 417.5 MB, free: 11.48 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.002071/0.2782, allocations: 1.234 MB / 418.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.2783, allocations: 13.83 kB / 418.8 MB, free: 10.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.132e-05/0.2783, allocations: 10.84 kB / 418.8 MB, free: 10.51 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.979e-05/0.2784, allocations: 59.33 kB / 418.8 MB, free: 10.45 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000169/0.2786, allocations: 133.1 kB / 419 MB, free: 10.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001307/0.2799, allocations: 0.7725 MB / 419.7 MB, free: 9.738 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.2799, allocations: 18.25 kB / 419.8 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.2799, allocations: 23.47 kB / 419.8 MB, free: 9.723 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005972/0.2805, allocations: 317.4 kB / 420.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.343e-05/0.2806, allocations: 1.031 kB / 420.1 MB, free: 9.516 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.586e-05/0.2806, allocations: 10.19 kB / 420.1 MB, free: 9.508 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.605e-05/0.2806, allocations: 10.66 kB / 420.1 MB, free: 9.504 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004229/0.281, allocations: 235.6 kB / 420.3 MB, free: 9.398 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001895/0.2829, allocations: 1.163 MB / 421.5 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.2833, allocations: 176.2 kB / 421.7 MB, free: 8.402 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003247/0.2836, allocations: 198.8 kB / 421.9 MB, free: 8.297 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.006579/0.2902, allocations: 3.106 MB / 425 MB, free: 6.699 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.037e-05/0.2903, allocations: 31.81 kB / 425 MB, free: 6.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=23): time 1.914e-06/0.2903, allocations: 0 / 425 MB, free: 6.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=23): time 0.001651/0.2919, allocations: 0.5803 MB / 425.6 MB, free: 6.355 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.764e-05/0.292, allocations: 88.17 kB / 425.7 MB, free: 6.254 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009593/0.2929, allocations: 0.8015 MB / 426.5 MB, free: 5.641 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.499e-05/0.293, allocations: 33.7 kB / 426.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003855/0.2933, allocations: 441 kB / 426.9 MB, free: 5.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.928e-05/0.2934, allocations: 83.27 kB / 427 MB, free: 5.082 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.518e-05/0.2935, allocations: 57.94 kB / 427.1 MB, free: 5.02 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001485/0.2937, allocations: 314 kB / 427.4 MB, free: 4.707 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.2938, allocations: 68.2 kB / 427.5 MB, free: 4.641 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002076/0.294, allocations: 145.9 kB / 427.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003569/0.2944, allocations: 220.5 kB / 427.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.565e-06/0.2944, allocations: 0 / 427.8 MB, free: 4.219 MB / 334.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006638/0.295, allocations: 418 kB / 428.2 MB, free: 3.801 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.957e-05/0.2951, allocations: 11.94 kB / 428.2 MB, free: 3.789 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.821e-05/0.2951, allocations: 12 kB / 428.2 MB, free: 3.777 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00037/0.2954, allocations: 141 kB / 428.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000191/0.2956, allocations: 43.91 kB / 428.4 MB, free: 3.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007054/0.2963, allocations: 0.7084 MB / 429.1 MB, free: 2.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003238/0.2967, allocations: 27.91 kB / 429.2 MB, free: 2.832 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.527e-05/0.2967, allocations: 12 kB / 429.2 MB, free: 2.82 MB / 334.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.0002664/0.297, allocations: 197.7 kB / 429.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000129/0.2971, allocations: 111.3 kB / 429.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007925/0.2979, allocations: 403.4 kB / 429.9 MB, free: 2.098 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.113e-05/0.2979, allocations: 7.984 kB / 429.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.499e-06/0.2979, allocations: 0 / 429.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.2979, allocations: 0 / 429.9 MB, free: 2.09 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006695/0.2986, allocations: 498.6 kB / 430.4 MB, free: 1.562 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.183e-05/0.2986, allocations: 12 kB / 430.4 MB, free: 1.551 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001207/0.2987, allocations: 15.98 kB / 430.4 MB, free: 1.535 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002889/0.299, allocations: 136.8 kB / 430.5 MB, free: 1.398 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.538e-05/0.299, allocations: 12 kB / 430.5 MB, free: 1.387 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006456/0.2997, allocations: 0.6967 MB / 431.2 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2997, allocations: 4.062 kB / 431.2 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006038/0.3003, allocations: 456.2 kB / 431.7 MB, free: 200 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002149/0.3005, allocations: 103.2 kB / 431.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.331e-05/0.3006, allocations: 8 kB / 431.8 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002004/0.3008, allocations: 0 / 431.8 MB, free: 88 kB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.254e-05/0.3009, allocations: 27.84 kB / 431.8 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.3009, allocations: 12 kB / 431.8 MB, free: 48 kB / 334.1 MB Notification: Performance of sorting global known variables: time 0.000745/0.3016, allocations: 0.5423 MB / 432.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3016, allocations: 0 / 432.4 MB, free: 15.5 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006232/0.3022, allocations: 195.7 kB / 432.6 MB, free: 15.3 MB / 350.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.001375/0.3036, allocations: 1.166 MB / 433.7 MB, free: 14.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.3042, allocations: 267.4 kB / 434 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.3042, allocations: 0 / 434 MB, free: 13.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002932/0.3045, allocations: 167.3 kB / 434.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000619/0.3051, allocations: 146.3 kB / 434.3 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006912/0.312, allocations: 5.33 MB / 439.6 MB, free: 7.996 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006021/0.3126, allocations: 0.9335 MB / 440.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003039/0.3129, allocations: 110.7 kB / 440.7 MB, free: 6.922 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003538/0.3133, allocations: 311.3 kB / 441 MB, free: 6.617 MB / 350.1 MB Notification: Performance of SimCode: time 1.794e-06/0.3133, allocations: 4 kB / 441 MB, free: 6.613 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04728/0.3606, allocations: 18.67 MB / 459.6 MB, free: 3.867 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.88/14.24, allocations: 7.797 kB / 459.7 MB, free: 3.859 MB / 366.1 MB " [Timeout remaining time 646] (rm -f Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit_fmu --startTime=0 --stopTime=0.2 --stepSize=0.0002 --timeout=50 --tolerance=1e-07 Modelica_3_2_3_Modelica_Electrical_Spice3_Examples_CascodeCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Spice3.Examples.CascodeCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.60329037095653]