Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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.001304/0.001304, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001489/0.001489, allocations: 174.3 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9049/0.9049, allocations: 177.1 MB / 204.3 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.263e-06/1.263e-06, allocations: 0 / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.654e-05/1.78e-05, allocations: 2.281 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.InvertersExtendedModel): time 0.008178/0.008196, allocations: 12.91 MB / 337.5 MB, free: 2.98 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01531/0.02351, allocations: 17.98 MB / 355.4 MB, free: 0.9297 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001829/0.02534, allocations: 138.5 kB / 355.6 MB, free: 0.793 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002288/0.02762, allocations: 1.168 MB / 356.7 MB, free: 15.62 MB / 330.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006564/0.03419, allocations: 2.479 MB / 359.2 MB, free: 13.12 MB / 330.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003976/0.03816, allocations: 1.433 MB / 360.7 MB, free: 11.68 MB / 330.7 MB Notification: Performance of NFFlatten.flatten: time 0.006829/0.04499, allocations: 6.901 MB / 367.6 MB, free: 4.754 MB / 330.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005517/0.04554, allocations: 274.2 kB / 367.8 MB, free: 4.461 MB / 330.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001509/0.04705, allocations: 1.609 MB / 369.4 MB, free: 2.848 MB / 330.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006298/0.04768, allocations: 0.8173 MB / 370.3 MB, free: 2.027 MB / 330.7 MB Notification: Performance of NFPackage.collectConstants: time 9.212e-05/0.04777, allocations: 75.94 kB / 370.3 MB, free: 1.953 MB / 330.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00224/0.05001, allocations: 1.21 MB / 371.5 MB, free: 0.7422 MB / 330.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.05018, allocations: 337.5 kB / 371.9 MB, free: 420 kB / 330.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005518/0.05073, allocations: 0.767 MB / 372.6 MB, free: 15.64 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003072/0.0538, allocations: 3.959 MB / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.05381, allocations: 0 / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.05381, allocations: 0 / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.643e-05/0.05383, allocations: 0 / 376.6 MB, free: 11.67 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 154 * Number of variables: 154 Notification: Performance of Generate backend data structure: time 0.002876/0.05671, allocations: 3.843 MB / 380.4 MB, free: 7.77 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.902e-05/0.05675, allocations: 8.031 kB / 380.4 MB, free: 7.762 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.543e-05/0.05683, allocations: 106.4 kB / 380.5 MB, free: 7.648 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002507/0.05708, allocations: 429.3 kB / 381 MB, free: 7.227 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002289/0.05937, allocations: 2.349 MB / 383.3 MB, free: 4.781 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.47e-05/0.0594, allocations: 40.98 kB / 383.4 MB, free: 4.738 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.191e-05/0.05948, allocations: 63.83 kB / 383.4 MB, free: 4.676 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000828/0.06031, allocations: 0.7304 MB / 384.1 MB, free: 3.941 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.247e-05/0.06032, allocations: 3.984 kB / 384.2 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.327e-05/0.06036, allocations: 20 kB / 384.2 MB, free: 3.918 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.06038, allocations: 23.92 kB / 384.2 MB, free: 3.895 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009127/0.06129, allocations: 0.8163 MB / 385 MB, free: 3.082 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003015/0.06431, allocations: 2.899 MB / 387.9 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006914/0.065, allocations: 0.5151 MB / 388.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000744/0.06574, allocations: 0.5689 MB / 389 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01468/0.08042, allocations: 13.73 MB / 402.7 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008207/0.08124, allocations: 369.9 kB / 403.1 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of pre-optimization done (n=49): time 2.194e-06/0.08124, allocations: 0 / 403.1 MB, free: 0.5352 MB / 362.7 MB Notification: Performance of matching and sorting (n=49): time 0.001384/0.08263, allocations: 1.131 MB / 404.2 MB, free: 15.39 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.871e-05/0.08267, allocations: 59.41 kB / 404.3 MB, free: 15.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002359/0.08503, allocations: 3.102 MB / 407.4 MB, free: 12.22 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.54e-05/0.08506, allocations: 37.64 kB / 407.4 MB, free: 12.18 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008831/0.08594, allocations: 1.585 MB / 409 MB, free: 10.59 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001006/0.08604, allocations: 170.6 kB / 409.2 MB, free: 10.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001994/0.08624, allocations: 226.4 kB / 409.4 MB, free: 10.19 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.954e-05/0.08633, allocations: 341.9 kB / 409.7 MB, free: 9.852 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003231/0.08666, allocations: 241.9 kB / 410 MB, free: 9.613 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007041/0.08736, allocations: 0.5979 MB / 410.6 MB, free: 8.844 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008158/0.08818, allocations: 0.8984 MB / 411.4 MB, free: 7.773 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.58e-06/0.08818, allocations: 4 kB / 411.5 MB, free: 7.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=110) (initialization): time 0.001311/0.08949, allocations: 1.271 MB / 412.7 MB, free: 6.492 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.506e-05/0.08952, allocations: 12.94 kB / 412.7 MB, free: 6.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.577e-05/0.08958, allocations: 83.98 kB / 412.8 MB, free: 6.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.388e-05/0.08961, allocations: 16 kB / 412.8 MB, free: 6.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003826/0.08999, allocations: 199.6 kB / 413 MB, free: 6.188 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.608e-05/0.09001, allocations: 23.92 kB / 413.1 MB, free: 6.164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005814/0.09059, allocations: 115.3 kB / 413.2 MB, free: 6.051 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.827e-05/0.09067, allocations: 71.98 kB / 413.2 MB, free: 5.98 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 14 (vin.counter,$PRE.vin.counter,v.counter,$PRE.v.counter,v.counter2,$PRE.v.counter2,v.T0,$PRE.v.T0,vin.counter2,$PRE.vin.counter2,vin.T0,$PRE.vin.T0,$whenCondition1,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005564/0.09122, allocations: 450.5 kB / 413.7 MB, free: 5.531 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002243/0.09145, allocations: 421.3 kB / 414.1 MB, free: 5.117 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001545/0.09299, allocations: 1.208 MB / 415.3 MB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.214e-06/0.093, allocations: 8 kB / 415.3 MB, free: 3.891 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.342e-06/0.093, allocations: 3.984 kB / 415.3 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.871e-06/0.09301, allocations: 0 / 415.3 MB, free: 3.887 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002497/0.09551, allocations: 2.065 MB / 417.4 MB, free: 1.758 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.504e-05/0.09556, allocations: 76.05 kB / 417.4 MB, free: 1.684 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002546/0.09582, allocations: 87.86 kB / 417.5 MB, free: 1.598 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.222e-06/0.09582, allocations: 4 kB / 417.5 MB, free: 1.594 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.826e-05/0.09586, allocations: 32 kB / 417.6 MB, free: 1.562 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.081e-06/0.09587, allocations: 4 kB / 417.6 MB, free: 1.559 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.09587, allocations: 3.938 kB / 417.6 MB, free: 1.555 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001372/0.09724, allocations: 1.34 MB / 418.9 MB, free: 192 kB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005474/0.09779, allocations: 439 kB / 419.3 MB, free: 15.76 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001609/0.09795, allocations: 12.06 kB / 419.4 MB, free: 15.75 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003745/0.09832, allocations: 35.95 kB / 419.4 MB, free: 15.71 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001178/0.09844, allocations: 59.94 kB / 419.4 MB, free: 15.65 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.573e-05/0.0985, allocations: 39.98 kB / 419.5 MB, free: 15.61 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001875/0.1004, allocations: 2.007 MB / 421.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.1004, allocations: 0 / 421.5 MB, free: 13.61 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008996/0.1013, allocations: 0.6008 MB / 422.1 MB, free: 13.01 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (c1.vinternal,c2.vinternal) * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin.T0,vin.counter,vin.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 4 (vin.counter2,v.counter2,vin.counter,v.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (42): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 6 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002342/0.1036, allocations: 2.626 MB / 424.7 MB, free: 10.35 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0009245/0.1045, allocations: 0.7752 MB / 425.5 MB, free: 9.551 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.1045, allocations: 0 / 425.5 MB, free: 9.551 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004013/0.1049, allocations: 432.1 kB / 425.9 MB, free: 9.105 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001454/0.1064, allocations: 0.6357 MB / 426.6 MB, free: 8.465 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/0.1232, allocations: 16.97 MB / 443.5 MB, free: 6.973 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000663/0.1238, allocations: 1.169 MB / 444.7 MB, free: 5.766 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0007119/0.1245, allocations: 361.3 kB / 445 MB, free: 5.406 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00104/0.1256, allocations: 1.266 MB / 446.3 MB, free: 4.141 MB / 410.7 MB Notification: Performance of SimCode: time 1.313e-06/0.1256, allocations: 3.938 kB / 446.3 MB, free: 4.137 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1811/0.3067, allocations: 66.53 MB / 0.5008 GB, free: 62.28 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.28/9.586, allocations: 9.625 kB / 0.5008 GB, free: 62.28 MB / 410.7 MB " [Timeout remaining time 650] (rm -f Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel_fmu --startTime=0 --stopTime=5 --stepSize=0.0009996 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Spice3_Examples_InvertersExtendedModel.fmu > Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Spice3/Examples/InvertersExtendedModel/InvertersExtendedModel.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Spice3.Examples.InvertersExtendedModel.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: 11.811729094944894]