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.001355/0.001355, allocations: 117.3 kB / 18.5 MB, free: 4.434 MB / 14.72 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.00142/0.00142, allocations: 218.6 kB / 21.47 MB, free: 1.473 MB / 14.72 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 1.495/1.495, allocations: 230.2 MB / 254.5 MB, free: 15.25 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001844/0.001844, allocations: 59.91 kB / 373.3 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1035, allocations: 53.33 MB / 426.7 MB, free: 4.984 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2071/0.3106, allocations: 5.301 MB / 432 MB, free: 7.512 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.009462/0.3201, allocations: 9.152 MB / 441.1 MB, free: 3.508 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000719/0.3208, allocations: 37.84 kB / 441.2 MB, free: 3.488 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001167/0.322, allocations: 398.8 kB / 441.5 MB, free: 3.293 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003228/0.3252, allocations: 0.8412 MB / 442.4 MB, free: 2.859 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00249/0.3277, allocations: 0.5968 MB / 443 MB, free: 2.664 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003056/0.3308, allocations: 1.723 MB / 444.7 MB, free: 2.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002642/0.331, allocations: 97.38 kB / 444.8 MB, free: 1.977 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005756/0.3316, allocations: 325.4 kB / 445.1 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004065/0.332, allocations: 319.5 kB / 445.4 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.611e-05/0.3321, allocations: 29.5 kB / 445.5 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002198/0.3343, allocations: 0.6582 MB / 446.1 MB, free: 1.473 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001057/0.3344, allocations: 104.5 kB / 446.2 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004258/0.3348, allocations: 404.7 kB / 446.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001857/0.3367, allocations: 1.226 MB / 447.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3367, allocations: 0 / 447.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3367, allocations: 0 / 447.8 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.094e-05/0.3367, allocations: 0 / 447.8 MB, free: 0.6328 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.002053/0.3388, allocations: 1.32 MB / 449.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.3388, allocations: 9.25 kB / 449.2 MB, free: 15.67 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.914e-05/0.3389, allocations: 61.62 kB / 449.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000327/0.3392, allocations: 137.3 kB / 449.4 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001396/0.3406, allocations: 0.8572 MB / 450.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.547e-05/0.3406, allocations: 20.48 kB / 450.2 MB, free: 15.02 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.004e-05/0.3407, allocations: 28.64 kB / 450.3 MB, free: 15 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005676/0.3413, allocations: 305 kB / 450.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.26e-05/0.3413, allocations: 4 kB / 450.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.154e-05/0.3413, allocations: 11.34 kB / 450.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.324e-05/0.3413, allocations: 6.328 kB / 450.6 MB, free: 14.85 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.3418, allocations: 235.9 kB / 450.8 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00203/0.3438, allocations: 1.185 MB / 452 MB, free: 14.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003648/0.3442, allocations: 175.4 kB / 452.2 MB, free: 13.94 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003183/0.3445, allocations: 202.9 kB / 452.4 MB, free: 13.85 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01015/0.3546, allocations: 8.882 MB / 461.3 MB, free: 5.664 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.3547, allocations: 37.22 kB / 461.3 MB, free: 5.621 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.014e-06/0.3547, allocations: 3.938 kB / 461.3 MB, free: 5.617 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001628/0.3563, allocations: 0.6595 MB / 462 MB, free: 5.297 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.761e-05/0.3564, allocations: 80.81 kB / 462 MB, free: 5.203 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009743/0.3573, allocations: 0.7939 MB / 462.8 MB, free: 4.875 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.828e-05/0.3574, allocations: 31.39 kB / 462.9 MB, free: 4.84 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003896/0.3578, allocations: 441.3 kB / 463.3 MB, free: 4.484 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.829e-05/0.3578, allocations: 81.17 kB / 463.4 MB, free: 4.422 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001067/0.3579, allocations: 62.09 kB / 463.4 MB, free: 4.383 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001378/0.3581, allocations: 320.7 kB / 463.7 MB, free: 4.07 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001554/0.3582, allocations: 68.91 kB / 463.8 MB, free: 4.047 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002181/0.3584, allocations: 143.4 kB / 464 MB, free: 3.93 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003727/0.3588, allocations: 243.5 kB / 464.2 MB, free: 3.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3588, allocations: 1.156 kB / 464.2 MB, free: 3.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0006728/0.3595, allocations: 401.2 kB / 464.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.87e-05/0.3595, allocations: 5.969 kB / 464.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.087e-05/0.3595, allocations: 13.5 kB / 464.6 MB, free: 3.539 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003772/0.3599, allocations: 142.4 kB / 464.7 MB, free: 3.484 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001744/0.3601, allocations: 38.91 kB / 464.8 MB, free: 3.473 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007125/0.3608, allocations: 0.7183 MB / 465.5 MB, free: 2.852 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003635/0.3612, allocations: 31.98 kB / 465.5 MB, free: 2.828 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.139e-05/0.3612, allocations: 16.12 kB / 465.5 MB, free: 2.824 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.0002725/0.3615, allocations: 190.4 kB / 465.7 MB, free: 2.664 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001366/0.3616, allocations: 107.6 kB / 465.8 MB, free: 2.609 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007931/0.3624, allocations: 403.3 kB / 466.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.3624, allocations: 0 / 466.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.3624, allocations: 2.688 kB / 466.2 MB, free: 2.379 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.873e-06/0.3624, allocations: 3.984 kB / 466.2 MB, free: 2.375 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000707/0.3631, allocations: 0.5023 MB / 466.7 MB, free: 1.969 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-05/0.3632, allocations: 16.47 kB / 466.8 MB, free: 1.965 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001189/0.3633, allocations: 23.81 kB / 466.8 MB, free: 1.953 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002799/0.3636, allocations: 133.8 kB / 466.9 MB, free: 1.902 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.386e-05/0.3636, allocations: 9.875 kB / 466.9 MB, free: 1.898 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006442/0.3642, allocations: 0.7014 MB / 467.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.3642, allocations: 3.266 kB / 467.6 MB, free: 1.285 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.3648, allocations: 449.2 kB / 468.1 MB, free: 0.9922 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002978/0.3651, allocations: 171.1 kB / 468.2 MB, free: 0.832 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.656e-05/0.3652, allocations: 6.688 kB / 468.2 MB, free: 0.8281 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000214/0.3654, allocations: 11.77 kB / 468.2 MB, free: 0.8203 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.63e-05/0.3655, allocations: 16.17 kB / 468.3 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.262e-05/0.3655, allocations: 8.094 kB / 468.3 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006994/0.3662, allocations: 0.549 MB / 468.8 MB, free: 496 kB / 366.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3662, allocations: 0 / 468.8 MB, free: 496 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006897/0.3669, allocations: 197.9 kB / 469 MB, free: 460 kB / 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.001449/0.3684, allocations: 1.19 MB / 470.2 MB, free: 15.53 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006173/0.369, allocations: 270.8 kB / 470.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.369, allocations: 1 kB / 470.5 MB, free: 15.38 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002938/0.3693, allocations: 173.4 kB / 470.6 MB, free: 15.27 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008047/0.3701, allocations: 167.4 kB / 470.8 MB, free: 15.18 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007274/0.3774, allocations: 5.318 MB / 476.1 MB, free: 11.96 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005421/0.3779, allocations: 0.9385 MB / 477.1 MB, free: 11.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003297/0.3782, allocations: 108.3 kB / 477.2 MB, free: 11.1 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003423/0.3786, allocations: 309.7 kB / 477.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of SimCode: time 1.182e-06/0.3786, allocations: 1.438 kB / 477.5 MB, free: 10.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04997/0.4285, allocations: 18.48 MB / 495.9 MB, free: 9.746 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/13.92, allocations: 12.06 kB / 496 MB, free: 9.734 MB / 398.1 MB " [Timeout remaining time 646] (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/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/CascodeCircuit/CascodeCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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: 16.495333240833133]