Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.005058/0.005058, allocations: 100 kB / 21.96 MB, free: 5.203 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.001332/0.001332, allocations: 214 kB / 25.25 MB, free: 3.141 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.351/1.351, allocations: 207.7 MB / 236.1 MB, free: 9.809 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.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase",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.001638/0.001638, allocations: 58.58 kB / 348 MB, free: 9.887 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2389, allocations: 49.15 MB / 397.1 MB, free: 8.906 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.007119/0.2461, allocations: 7.206 MB / 404.3 MB, free: 4.125 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003933/0.25, allocations: 2.55 MB / 406.9 MB, free: 2.312 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008526/0.2508, allocations: 28.41 kB / 406.9 MB, free: 2.305 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001399/0.2522, allocations: 0.5245 MB / 407.4 MB, free: 2.055 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001213/0.2535, allocations: 0.5035 MB / 407.9 MB, free: 1.688 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00052/0.254, allocations: 261.8 kB / 408.2 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.001348/0.2553, allocations: 1.503 MB / 409.7 MB, free: 0.7109 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005249/0.2558, allocations: 400.3 kB / 410.1 MB, free: 480 kB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006861/0.2565, allocations: 0.589 MB / 410.7 MB, free: 168 kB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007302/0.2573, allocations: 0.6116 MB / 411.3 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001687/0.2574, allocations: 140.8 kB / 411.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003548/0.2578, allocations: 180.1 kB / 411.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002767/0.2581, allocations: 287.7 kB / 411.9 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005509/0.2586, allocations: 0.546 MB / 412.4 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001915/0.2605, allocations: 1.77 MB / 414.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.08e-06/0.2605, allocations: 1.062 kB / 414.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.834e-06/0.2605, allocations: 0 / 414.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.898e-05/0.2606, allocations: 4 kB / 414.2 MB, free: 14.11 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: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002435/0.263, allocations: 1.44 MB / 415.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.263, allocations: 12.33 kB / 415.7 MB, free: 13.04 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 3.593e-05/0.2631, allocations: 25.59 kB / 415.7 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001704/0.2632, allocations: 153.5 kB / 415.8 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000658/0.2639, allocations: 203.8 kB / 416 MB, free: 12.81 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001214/0.2651, allocations: 0.6938 MB / 416.7 MB, free: 12.25 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.132e-05/0.2652, allocations: 74.38 kB / 416.8 MB, free: 12.22 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001354/0.2653, allocations: 98.33 kB / 416.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001697/0.267, allocations: 1.046 MB / 417.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.317e-05/0.267, allocations: 6.203 kB / 418 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.273e-05/0.2671, allocations: 41.28 kB / 418 MB, free: 11.45 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.111e-05/0.2671, allocations: 27.22 kB / 418 MB, free: 11.44 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001234/0.2684, allocations: 0.6473 MB / 418.7 MB, free: 11.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004923/0.2733, allocations: 3.521 MB / 422.2 MB, free: 8.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006565/0.2739, allocations: 344.2 kB / 422.5 MB, free: 8.008 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005696/0.2745, allocations: 260.7 kB / 422.8 MB, free: 7.887 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.091e-05/0.2745, allocations: 12.09 kB / 422.8 MB, free: 7.879 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.2746, allocations: 37.38 kB / 422.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of pre-optimization done (n=41): time 2.394e-06/0.2746, allocations: 1.625 kB / 422.8 MB, free: 7.836 MB / 334.1 MB Notification: Performance of matching and sorting (n=45): time 0.002901/0.2775, allocations: 1.338 MB / 424.2 MB, free: 7.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.899e-05/0.2775, allocations: 82.83 kB / 424.2 MB, free: 6.91 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001093/0.2786, allocations: 0.8428 MB / 425.1 MB, free: 6.43 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.2787, allocations: 32.17 kB / 425.1 MB, free: 6.395 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004298/0.2791, allocations: 0.5786 MB / 425.7 MB, free: 5.875 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001407/0.2792, allocations: 174 kB / 425.9 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001844/0.2794, allocations: 133.4 kB / 426 MB, free: 5.637 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.2796, allocations: 332.9 kB / 426.3 MB, free: 5.312 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003438/0.2799, allocations: 171.6 kB / 426.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005896/0.2805, allocations: 0.4899 MB / 427 MB, free: 4.641 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009653/0.2815, allocations: 0.6797 MB / 427.7 MB, free: 3.828 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.416e-06/0.2815, allocations: 4 kB / 427.7 MB, free: 3.824 MB / 334.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001381/0.2829, allocations: 0.7868 MB / 428.5 MB, free: 3.023 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.2829, allocations: 12 kB / 428.5 MB, free: 3.012 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.2829, allocations: 8.469 kB / 428.5 MB, free: 3.004 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002701/0.2832, allocations: 93.55 kB / 428.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005032/0.2837, allocations: 155.7 kB / 428.7 MB, free: 2.754 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002566/0.2862, allocations: 2.923 MB / 431.6 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006661/0.2869, allocations: 44.06 kB / 431.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.623e-05/0.287, allocations: 32.16 kB / 431.7 MB, free: 15.53 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004134/0.2874, allocations: 269.5 kB / 432 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001282/0.2875, allocations: 87.44 kB / 432.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009635/0.2885, allocations: 0.4994 MB / 432.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.2885, allocations: 4 kB / 432.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/0.2885, allocations: 4 kB / 432.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.988e-06/0.2885, allocations: 0 / 432.6 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002175/0.2907, allocations: 1.341 MB / 433.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.42e-06/0.2907, allocations: 4 kB / 433.9 MB, free: 13.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003155/0.291, allocations: 79.83 kB / 434 MB, free: 13.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002044/0.2912, allocations: 73.89 kB / 434.1 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.722e-05/0.2912, allocations: 12 kB / 434.1 MB, free: 13.06 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002335/0.2936, allocations: 2.908 MB / 437 MB, free: 9.922 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.857e-06/0.2936, allocations: 7.969 kB / 437 MB, free: 9.914 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001337/0.2949, allocations: 0.8025 MB / 437.8 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003236/0.2952, allocations: 131.3 kB / 437.9 MB, free: 8.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001047/0.2953, allocations: 8 kB / 437.9 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004278/0.2958, allocations: 27.98 kB / 438 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.2959, allocations: 43.86 kB / 438 MB, free: 8.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.682e-05/0.2959, allocations: 12 kB / 438 MB, free: 8.848 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008098/0.2967, allocations: 0.5732 MB / 438.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2967, allocations: 0 / 438.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.00088/0.2976, allocations: 215.9 kB / 438.8 MB, free: 8.066 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.phi) * 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001747/0.2993, allocations: 1.374 MB / 440.2 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001252/0.3006, allocations: 0.6824 MB / 440.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.3006, allocations: 0 / 440.9 MB, free: 5.934 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000675/0.3012, allocations: 445.5 kB / 441.3 MB, free: 5.473 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.3023, allocations: 235 kB / 441.5 MB, free: 5.246 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01092/0.3132, allocations: 7.463 MB / 449 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004826/0.3137, allocations: 422.6 kB / 449.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004411/0.3141, allocations: 111.3 kB / 449.5 MB, free: 12.78 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004827/0.3146, allocations: 391.3 kB / 449.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of SimCode: time 1.262e-06/0.3146, allocations: 0 / 449.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05506/0.3697, allocations: 21.01 MB / 470.9 MB, free: 7.293 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.62/12.99, allocations: 3.938 kB / 470.9 MB, free: 7.289 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCSE_SinglePhase.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCSE_SinglePhase/DCSE_SinglePhase.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 17.94868909905199]