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.001574/0.001574, allocations: 123.4 kB / 17.79 MB, free: 5.266 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.001908/0.001908, allocations: 200.3 kB / 20.74 MB, free: 2.32 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.534/1.534, allocations: 230.6 MB / 254.1 MB, free: 15.1 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.CascodeCircuit,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_CascodeCircuit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001724/0.001724, allocations: 43.94 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1005/0.1022, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.CascodeCircuit): time 0.2149/0.3171, allocations: 5.302 MB / 431.6 MB, free: 7.523 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008577/0.3257, allocations: 9.147 MB / 440.8 MB, free: 3.312 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006451/0.3264, allocations: 57.94 kB / 440.8 MB, free: 3.273 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001064/0.3274, allocations: 398 kB / 441.2 MB, free: 3.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002437/0.3299, allocations: 0.846 MB / 442.1 MB, free: 2.645 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001825/0.3317, allocations: 0.5958 MB / 442.6 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002353/0.334, allocations: 1.719 MB / 444.4 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002319/0.3343, allocations: 102 kB / 444.5 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005029/0.3348, allocations: 335.4 kB / 444.8 MB, free: 1.586 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004388/0.3352, allocations: 323.8 kB / 445.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.588e-05/0.3353, allocations: 29.91 kB / 445.1 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001762/0.3371, allocations: 0.6526 MB / 445.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.105e-05/0.3372, allocations: 108.8 kB / 445.9 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003338/0.3375, allocations: 409 kB / 446.3 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001612/0.3391, allocations: 1.221 MB / 447.5 MB, free: 392 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.3391, allocations: 4 kB / 447.5 MB, free: 388 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.973e-06/0.3391, allocations: 0 / 447.5 MB, free: 388 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.3391, allocations: 1.094 kB / 447.5 MB, free: 388 kB / 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.002059/0.3412, allocations: 1.316 MB / 448.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.428e-05/0.3412, allocations: 9.766 kB / 448.8 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.005e-05/0.3413, allocations: 66.83 kB / 448.9 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003141/0.3416, allocations: 131.8 kB / 449 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001337/0.343, allocations: 0.8527 MB / 449.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.756e-05/0.343, allocations: 18.28 kB / 449.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.795e-05/0.3431, allocations: 28.89 kB / 449.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005843/0.3437, allocations: 305.9 kB / 450.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.154e-05/0.3437, allocations: 4 kB / 450.2 MB, free: 14.61 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.3437, allocations: 11.03 kB / 450.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3437, allocations: 10.38 kB / 450.3 MB, free: 14.6 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004535/0.3442, allocations: 231.5 kB / 450.5 MB, free: 14.52 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002025/0.3462, allocations: 1.191 MB / 451.7 MB, free: 13.78 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003998/0.3466, allocations: 179.2 kB / 451.9 MB, free: 13.69 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.3469, allocations: 199.2 kB / 452.1 MB, free: 13.6 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01036/0.3573, allocations: 8.876 MB / 460.9 MB, free: 5.422 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.3573, allocations: 37.06 kB / 461 MB, free: 5.379 MB / 366.1 MB Notification: Performance of pre-optimization done (n=23): time 2.034e-06/0.3573, allocations: 1.375 kB / 461 MB, free: 5.379 MB / 366.1 MB Notification: Performance of matching and sorting (n=23): time 0.001735/0.3591, allocations: 0.6628 MB / 461.6 MB, free: 5.059 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.867e-05/0.3591, allocations: 78.55 kB / 461.7 MB, free: 4.965 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009997/0.3601, allocations: 0.7971 MB / 462.5 MB, free: 4.633 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.32e-05/0.3602, allocations: 27.2 kB / 462.5 MB, free: 4.602 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003998/0.3606, allocations: 445 kB / 463 MB, free: 4.242 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.342e-05/0.3606, allocations: 84.52 kB / 463 MB, free: 4.176 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001082/0.3608, allocations: 58.86 kB / 463.1 MB, free: 4.141 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.3609, allocations: 324.6 kB / 463.4 MB, free: 3.824 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001536/0.3611, allocations: 66.53 kB / 463.5 MB, free: 3.797 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.3613, allocations: 153.2 kB / 463.6 MB, free: 3.66 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003762/0.3617, allocations: 227.5 kB / 463.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.3617, allocations: 1.094 kB / 463.9 MB, free: 3.496 MB / 366.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.0007059/0.3624, allocations: 405.8 kB / 464.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.342e-05/0.3624, allocations: 5.125 kB / 464.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.271e-05/0.3624, allocations: 14.38 kB / 464.3 MB, free: 3.281 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004371/0.3629, allocations: 148.2 kB / 464.4 MB, free: 3.223 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001859/0.3631, allocations: 37.88 kB / 464.5 MB, free: 3.211 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007616/0.3638, allocations: 0.709 MB / 465.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003518/0.3642, allocations: 27.78 kB / 465.2 MB, free: 2.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.62e-05/0.3642, allocations: 20.55 kB / 465.2 MB, free: 2.566 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.0002783/0.3645, allocations: 190.9 kB / 465.4 MB, free: 2.406 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001445/0.3646, allocations: 106.9 kB / 465.5 MB, free: 2.352 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008326/0.3655, allocations: 402.5 kB / 465.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.562e-06/0.3655, allocations: 2.156 kB / 465.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.057e-06/0.3655, allocations: 1.406 kB / 465.9 MB, free: 2.125 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.997e-06/0.3655, allocations: 5.438 kB / 465.9 MB, free: 2.121 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007194/0.3662, allocations: 0.5042 MB / 466.4 MB, free: 1.715 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.339e-05/0.3662, allocations: 15.09 kB / 466.4 MB, free: 1.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001287/0.3664, allocations: 25 kB / 466.4 MB, free: 1.699 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002936/0.3667, allocations: 139.6 kB / 466.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.852e-05/0.3667, allocations: 2.875 kB / 466.6 MB, free: 1.645 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006181/0.3673, allocations: 0.7085 MB / 467.3 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.874e-06/0.3673, allocations: 1.125 kB / 467.3 MB, free: 1.027 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006134/0.3679, allocations: 453.3 kB / 467.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002026/0.3681, allocations: 172.7 kB / 467.9 MB, free: 0.5703 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.963e-05/0.3682, allocations: 5.969 kB / 467.9 MB, free: 0.5664 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002216/0.3684, allocations: 16.45 kB / 467.9 MB, free: 0.5547 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.019e-05/0.3685, allocations: 16.86 kB / 467.9 MB, free: 0.5469 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.3685, allocations: 11.19 kB / 468 MB, free: 0.543 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006414/0.3691, allocations: 0.5414 MB / 468.5 MB, free: 228 kB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3691, allocations: 0 / 468.5 MB, free: 228 kB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006693/0.3698, allocations: 194.8 kB / 468.7 MB, free: 196 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.001433/0.3712, allocations: 1.178 MB / 469.9 MB, free: 15.29 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0006957/0.3719, allocations: 272.9 kB / 470.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3719, allocations: 0.5625 kB / 470.1 MB, free: 15.13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003169/0.3722, allocations: 177 kB / 470.3 MB, free: 15.02 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007845/0.373, allocations: 161.5 kB / 470.5 MB, free: 14.93 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007073/0.3801, allocations: 5.322 MB / 475.8 MB, free: 11.71 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000562/0.3807, allocations: 0.9375 MB / 476.7 MB, free: 10.9 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003133/0.381, allocations: 114.2 kB / 476.8 MB, free: 10.84 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003579/0.3813, allocations: 309.8 kB / 477.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3813, allocations: 3.938 kB / 477.1 MB, free: 10.57 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.057/0.4383, allocations: 18.46 MB / 495.6 MB, free: 9.578 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.74/14.18, allocations: 11.94 kB / 495.6 MB, free: 9.566 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.74569968599826]