Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001626/0.001626, allocations: 117 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001732/0.001732, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.587/1.587, allocations: 227.4 MB / 246.4 MB, free: 10.81 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 59.12 kB / 306.6 MB, free: 0.8477 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1277/0.1291, allocations: 50.54 MB / 357.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.003835/0.1329, allocations: 1.652 MB / 358.7 MB, free: 12.66 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009924/0.134, allocations: 0.5065 MB / 359.2 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001025/0.1341, allocations: 7.938 kB / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.504e-05/0.1342, allocations: 0 / 359.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000182/0.1344, allocations: 15.84 kB / 359.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000302/0.1347, allocations: 43.95 kB / 359.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001327/0.1348, allocations: 67.78 kB / 359.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001118/0.135, allocations: 15.98 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001797/0.1352, allocations: 39.84 kB / 359.4 MB, free: 11.96 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.125e-05/0.1352, allocations: 35.84 kB / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.768e-05/0.1353, allocations: 4 kB / 359.5 MB, free: 11.92 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.157e-05/0.1353, allocations: 8 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.025e-05/0.1354, allocations: 19.91 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.718e-05/0.1354, allocations: 23.86 kB / 359.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001596/0.1356, allocations: 71.72 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.519e-06/0.1356, allocations: 4 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.403e-06/0.1356, allocations: 0 / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.001e-06/0.1356, allocations: 0 / 359.6 MB, free: 11.79 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006105/0.1362, allocations: 379.4 kB / 360 MB, free: 11.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.593e-05/0.1363, allocations: 8.031 kB / 360 MB, free: 11.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.79e-05/0.1363, allocations: 38.75 kB / 360 MB, free: 11.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002374/0.1366, allocations: 24.83 kB / 360 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002195/0.1368, allocations: 188.2 kB / 360.2 MB, free: 11.07 MB / 302.1 MB Error: Internal error - BackendDAEOptimize.makeEquationToResidualExp failed to transform equation: sine.startOutput = previous(sine.counter) >= sine.startTick - 1 to residual form! Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001685/0.137, allocations: 38.25 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.653e-05/0.137, allocations: 4.375 kB / 360.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004036/0.1374, allocations: 168.8 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.606e-06/0.1374, allocations: 0 / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.638e-05/0.1375, allocations: 7.938 kB / 360.4 MB, free: 10.84 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.674e-06/0.1375, allocations: 4 kB / 360.4 MB, free: 10.83 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.1376, allocations: 35.91 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002037/0.1378, allocations: 186.4 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.1381, allocations: 170.4 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.764e-05/0.1382, allocations: 37.7 kB / 360.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.534e-05/0.1383, allocations: 7.938 kB / 360.9 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.572e-05/0.1383, allocations: 42.55 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of pre-optimization done (n=7): time 1.984e-06/0.1383, allocations: 0 / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of matching and sorting (n=7): time 0.00035/0.1387, allocations: 113.5 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.563e-05/0.1388, allocations: 85.05 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001167/0.1389, allocations: 127.9 kB / 361.2 MB, free: 9.906 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.823e-05/0.1389, allocations: 25.7 kB / 361.3 MB, free: 9.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.36e-05/0.139, allocations: 100.2 kB / 361.4 MB, free: 9.773 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.773e-05/0.139, allocations: 3.906 kB / 361.4 MB, free: 9.77 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-05/0.1391, allocations: 21.72 kB / 361.4 MB, free: 9.742 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1392, allocations: 322.8 kB / 361.7 MB, free: 9.418 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.362e-05/0.1392, allocations: 15.98 kB / 361.7 MB, free: 9.402 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.087e-05/0.1393, allocations: 62 kB / 361.8 MB, free: 9.32 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.1395, allocations: 81.88 kB / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1395, allocations: 0 / 361.8 MB, free: 9.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001782/0.1397, allocations: 101.4 kB / 361.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1397, allocations: 4 kB / 362 MB, free: 9.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.023e-06/0.1397, allocations: 4 kB / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.424e-05/0.1397, allocations: 0 / 362 MB, free: 9.105 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.321e-05/0.1398, allocations: 20.2 kB / 362 MB, free: 9.086 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.1398, allocations: 7.938 kB / 362 MB, free: 9.078 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.276e-05/0.1399, allocations: 4 kB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.1399, allocations: 8 kB / 362 MB, free: 9.066 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 4 ($CLKPRE.sine.startOutput,sine.startOutput,$CLKPRE.sine.counter,sine.counter) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.startOutput,sine.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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 9.674e-05/0.14, allocations: 121.8 kB / 362.1 MB, free: 8.938 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001258/0.1401, allocations: 73.78 kB / 362.2 MB, free: 8.859 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4e-05/0.1402, allocations: 12.38 kB / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1402, allocations: 192 / 362.2 MB, free: 8.848 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.877e-06/0.1402, allocations: 8.047 kB / 362.2 MB, free: 8.84 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.759e-06/0.1402, allocations: 7.938 kB / 362.2 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001315/0.1404, allocations: 177.6 kB / 362.4 MB, free: 8.609 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/0.1404, allocations: 3.938 kB / 362.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.313e-05/0.1405, allocations: 11.98 kB / 362.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.1405, allocations: 0 / 362.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.676e-05/0.1405, allocations: 8 kB / 362.4 MB, free: 8.586 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1405, allocations: 3.938 kB / 362.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.1405, allocations: 0 / 362.4 MB, free: 8.582 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002251/0.1407, allocations: 121.9 kB / 362.5 MB, free: 8.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.799e-05/0.1408, allocations: 100.9 kB / 362.6 MB, free: 8.324 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.56e-05/0.1409, allocations: 4 kB / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.289e-05/0.1409, allocations: 0 / 362.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.287e-05/0.141, allocations: 11.94 kB / 362.6 MB, free: 8.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.698e-06/0.141, allocations: 3.984 kB / 362.7 MB, free: 8.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.534e-05/0.141, allocations: 95.27 kB / 362.7 MB, free: 8.211 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1411, allocations: 4 kB / 362.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002105/0.1413, allocations: 16 kB / 362.8 MB, free: 8.191 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 2 (sine.counter,sine.startOutput) * Number of discrete states: 0 () * Number of clocked states: 2 (sine.counter,sine.startOutput) * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 1 * 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.0007228/0.142, allocations: 0.6874 MB / 363.5 MB, free: 7.469 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002319/0.1422, allocations: 71.91 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.1423, allocations: 0 / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.717e-05/0.1423, allocations: 4 kB / 363.5 MB, free: 7.395 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007238/0.143, allocations: 0.7179 MB / 364.2 MB, free: 6.656 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001568/0.1446, allocations: 1.424 MB / 365.7 MB, free: 5.102 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003138/0.1449, allocations: 0.6934 MB / 366.4 MB, free: 4.383 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 3.498e-05/0.145, allocations: 4 kB / 366.4 MB, free: 4.379 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.396e-05/0.145, allocations: 23.42 kB / 366.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of SimCode: time 3e-07/0.145, allocations: 0 / 366.4 MB, free: 4.355 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1543/0.2994, allocations: 1.837 MB / 368.2 MB, free: 2.66 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003488/0.2998, allocations: 215 kB / 368.4 MB, free: 2.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.042/2.342, allocations: 3.375 kB / 368.4 MB, free: 2.402 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches