Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs,fileNamePrefix="Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001369/0.001369, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00165/0.00165, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.252/1.252, allocations: 227.4 MB / 246.8 MB, free: 10.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001097/0.001097, allocations: 59.78 kB / 307 MB, free: 0.543 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08598/0.0871, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs): time 0.006298/0.09343, allocations: 5.437 MB / 363 MB, free: 8.547 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003771/0.09722, allocations: 2.153 MB / 365.2 MB, free: 6.383 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008247/0.09807, allocations: 43.75 kB / 365.2 MB, free: 6.34 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000495/0.09861, allocations: 198.3 kB / 365.4 MB, free: 6.145 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004251/0.09904, allocations: 170.4 kB / 365.6 MB, free: 5.977 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001146/0.1002, allocations: 399 kB / 366 MB, free: 5.586 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008519/0.1011, allocations: 1.009 MB / 367 MB, free: 4.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006884/0.1018, allocations: 0.6143 MB / 367.6 MB, free: 3.938 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003343/0.1021, allocations: 342.9 kB / 367.9 MB, free: 3.602 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003256/0.1024, allocations: 362.3 kB / 368.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001004/0.1026, allocations: 95.94 kB / 368.4 MB, free: 3.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002326/0.1028, allocations: 156 kB / 368.5 MB, free: 3 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001578/0.103, allocations: 203.4 kB / 368.7 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000345/0.1033, allocations: 437.9 kB / 369.1 MB, free: 2.371 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009526/0.1043, allocations: 1.153 MB / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.1043, allocations: 0 / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1043, allocations: 0 / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.409e-05/0.1043, allocations: 0 / 370.3 MB, free: 1.215 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 214 * Number of variables: 214 Notification: Performance of Generate backend data structure: time 0.001212/0.1055, allocations: 1.033 MB / 371.3 MB, free: 132 kB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.1056, allocations: 12.03 kB / 371.3 MB, free: 120 kB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.1439/0.2495, allocations: 134.6 kB / 371.5 MB, free: 20.34 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003052/0.2498, allocations: 93.78 kB / 371.6 MB, free: 20.32 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006181/0.2504, allocations: 0.4997 MB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.296e-05/0.2505, allocations: 62.47 kB / 372.1 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001183/0.2506, allocations: 86.53 kB / 372.2 MB, free: 20.07 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001307/0.2519, allocations: 0.8047 MB / 373 MB, free: 19.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.173e-05/0.252, allocations: 16.44 kB / 373 MB, free: 19.89 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.236e-05/0.252, allocations: 36.06 kB / 373.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.446e-05/0.2521, allocations: 23.06 kB / 373.1 MB, free: 19.86 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009679/0.253, allocations: 0.4908 MB / 373.6 MB, free: 19.69 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002845/0.2559, allocations: 2.894 MB / 376.5 MB, free: 17.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004565/0.2563, allocations: 225.2 kB / 376.7 MB, free: 17.63 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000144/0.2565, allocations: 107 kB / 376.8 MB, free: 17.59 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001843/0.2567, allocations: 247.8 kB / 377 MB, free: 17.3 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.336e-05/0.2567, allocations: 38.56 kB / 377.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 2.475e-06/0.2567, allocations: 2.156 kB / 377.1 MB, free: 17.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=35): time 0.00197/0.2587, allocations: 1.268 MB / 378.3 MB, free: 16.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.043e-05/0.2587, allocations: 58.16 kB / 378.4 MB, free: 16.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002715/0.259, allocations: 310.4 kB / 378.7 MB, free: 16.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.563e-05/0.259, allocations: 31.39 kB / 378.7 MB, free: 16.13 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001536/0.2592, allocations: 398.6 kB / 379.1 MB, free: 15.82 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.295e-05/0.2593, allocations: 134 kB / 379.3 MB, free: 15.71 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.661e-05/0.2594, allocations: 92.11 kB / 379.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 6.194e-05/0.2594, allocations: 355.6 kB / 379.7 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001796/0.2596, allocations: 106.2 kB / 379.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002401/0.2599, allocations: 249.8 kB / 380 MB, free: 15.07 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004078/0.2603, allocations: 392.9 kB / 380.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.976e-06/0.2603, allocations: 1.188 kB / 380.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.0006229/0.2609, allocations: 462.7 kB / 380.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.703e-05/0.2609, allocations: 10.12 kB / 380.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.747e-06/0.261, allocations: 4.812 kB / 380.9 MB, free: 14.56 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001655/0.2611, allocations: 35.08 kB / 380.9 MB, free: 14.55 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003241/0.2615, allocations: 113.5 kB / 381 MB, free: 14.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002608/0.2617, allocations: 0.5537 MB / 381.6 MB, free: 14 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000165/0.2619, allocations: 20.34 kB / 381.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.551e-05/0.262, allocations: 21.41 kB / 381.6 MB, free: 13.98 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * 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 (60): * Single equations (assignments): 59 * 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 {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0002141/0.2622, allocations: 215.3 kB / 381.8 MB, free: 13.81 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.947e-05/0.2622, allocations: 38.05 kB / 381.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005399/0.2628, allocations: 322.5 kB / 382.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.2628, allocations: 3.594 kB / 382.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.2628, allocations: 0.5625 kB / 382.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.392e-06/0.2628, allocations: 3.078 kB / 382.2 MB, free: 13.63 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001234/0.2641, allocations: 1.02 MB / 383.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.138e-06/0.2641, allocations: 1.531 kB / 383.2 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003291/0.2644, allocations: 80.64 kB / 383.3 MB, free: 13 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001108/0.2645, allocations: 35.45 kB / 383.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.325e-05/0.2646, allocations: 14.73 kB / 383.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001869/0.2648, allocations: 0.5515 MB / 383.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.2648, allocations: 1.75 kB / 383.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000613/0.2654, allocations: 0.5436 MB / 384.4 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.734e-05/0.2654, allocations: 107.3 kB / 384.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.532e-05/0.2655, allocations: 9.641 kB / 384.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001417/0.2656, allocations: 8.984 kB / 384.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.819e-05/0.2657, allocations: 29.48 kB / 384.6 MB, free: 11.97 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-05/0.2657, allocations: 18.34 kB / 384.6 MB, free: 11.96 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001819/0.2659, allocations: 221.7 kB / 384.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2659, allocations: 0 / 384.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004949/0.2664, allocations: 125 kB / 385 MB, free: 11.82 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 10 (directInertia.inertia.w,directInertia.torqueToAngle.phi,inertia2a.w,torqueToAngle2a.phi,inertia2b.w,torqueToAngle2b.phi,inertia3a.phi,inertia3a.w,inertia3b.phi,inertia3b.w) * 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 (33): * Single equations (assignments): 32 * 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 {(1,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008558/0.2673, allocations: 1.096 MB / 386.1 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006362/0.2679, allocations: 335.1 kB / 386.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.268, allocations: 0 / 386.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002483/0.2682, allocations: 137.3 kB / 386.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004912/0.2687, allocations: 69.39 kB / 386.6 MB, free: 10.77 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004726/0.2734, allocations: 4.423 MB / 391 MB, free: 7.691 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.2739, allocations: 0.9199 MB / 391.9 MB, free: 6.977 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001643/0.274, allocations: 45.06 kB / 392 MB, free: 6.969 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002169/0.2742, allocations: 245.2 kB / 392.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.2743, allocations: 1.219 kB / 392.2 MB, free: 6.777 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.8941/1.168, allocations: 8.107 MB / 400.3 MB, free: 3.395 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.67/14.83, allocations: 1.422 kB / 400.3 MB, free: 3.395 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; mkfifo Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe >> ../files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat --tempDir=temp_Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Mechanics_Rotational_Examples_GenerationOfFMUs.fmu > Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Mechanics/Rotational/Examples/GenerationOfFMUs/GenerationOfFMUs.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Mechanics.Rotational.Examples.GenerationOfFMUs.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches