Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.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.00131/0.00131, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.001455/0.001455, allocations: 208.1 kB / 23.74 MB, free: 4.691 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.395/1.395, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001479/0.001479, allocations: 51.92 kB / 377.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2378/0.2393, allocations: 53.36 MB / 431.1 MB, free: 6.867 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine): time 0.002883/0.2422, allocations: 1.616 MB / 432.8 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009904/0.2432, allocations: 0.5181 MB / 433.3 MB, free: 4.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.112e-05/0.2433, allocations: 7.938 kB / 433.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.23e-05/0.2433, allocations: 3.938 kB / 433.3 MB, free: 4.711 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000163/0.2435, allocations: 15.86 kB / 433.3 MB, free: 4.695 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002485/0.2437, allocations: 55.75 kB / 433.4 MB, free: 4.645 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001328/0.2438, allocations: 63.84 kB / 433.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.178e-05/0.2439, allocations: 11.98 kB / 433.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001599/0.2441, allocations: 43.78 kB / 433.5 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.7e-05/0.2442, allocations: 35.84 kB / 433.5 MB, free: 4.492 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2e-05/0.2442, allocations: 4 kB / 433.5 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.191e-05/0.2442, allocations: 8 kB / 433.5 MB, free: 4.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.231e-05/0.2443, allocations: 11.92 kB / 433.5 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.975e-05/0.2443, allocations: 39.8 kB / 433.6 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001594/0.2445, allocations: 69.34 kB / 433.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.717e-06/0.2445, allocations: 0 / 433.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.843e-06/0.2445, allocations: 0 / 433.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2445, allocations: 0 / 433.6 MB, free: 4.363 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0005084/0.245, allocations: 310 kB / 433.9 MB, free: 4.031 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.588e-05/0.245, allocations: 8.031 kB / 434 MB, free: 4.023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.696e-05/0.2451, allocations: 30.75 kB / 434 MB, free: 3.984 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002128/0.2453, allocations: 24.88 kB / 434 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002654/0.2455, allocations: 138.3 kB / 434.1 MB, free: 3.801 MB / 334.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.0001081/0.2456, allocations: 40.91 kB / 434.2 MB, free: 3.758 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.559e-05/0.2457, allocations: 4.375 kB / 434.2 MB, free: 3.754 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003694/0.246, allocations: 168.9 kB / 434.4 MB, free: 3.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.095e-05/0.246, allocations: 4 kB / 434.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.2461, allocations: 7.938 kB / 434.4 MB, free: 3.559 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.991e-06/0.2461, allocations: 3.984 kB / 434.4 MB, free: 3.555 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001189/0.2462, allocations: 27.98 kB / 434.4 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001792/0.2464, allocations: 161.5 kB / 434.6 MB, free: 3.324 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002535/0.2466, allocations: 81.27 kB / 434.6 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.577e-05/0.2467, allocations: 41.69 kB / 434.7 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.192e-05/0.2467, allocations: 7.938 kB / 434.7 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.2468, allocations: 34.56 kB / 434.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of pre-optimization done (n=7): time 1.222e-06/0.2468, allocations: 0 / 434.7 MB, free: 3.129 MB / 334.1 MB Notification: Performance of matching and sorting (n=7): time 0.0003315/0.2471, allocations: 121.5 kB / 434.8 MB, free: 3.004 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.16e-05/0.2472, allocations: 85.11 kB / 434.9 MB, free: 2.902 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001042/0.2473, allocations: 123.4 kB / 435 MB, free: 2.773 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.034e-05/0.2473, allocations: 25.7 kB / 435.1 MB, free: 2.742 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.401e-05/0.2473, allocations: 88.14 kB / 435.1 MB, free: 2.652 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.191e-05/0.2474, allocations: 15.88 kB / 435.2 MB, free: 2.637 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.961e-05/0.2474, allocations: 21.84 kB / 435.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.2475, allocations: 322.8 kB / 435.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.795e-05/0.2476, allocations: 12 kB / 435.5 MB, free: 2.273 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.331e-05/0.2477, allocations: 61.94 kB / 435.6 MB, free: 2.191 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001291/0.2478, allocations: 85.86 kB / 435.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.833e-06/0.2478, allocations: 0 / 435.7 MB, free: 2.086 MB / 334.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001806/0.248, allocations: 105.4 kB / 435.8 MB, free: 1.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.407e-05/0.248, allocations: 4 kB / 435.8 MB, free: 1.973 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.153e-06/0.248, allocations: 4 kB / 435.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.248, allocations: 0 / 435.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.794e-05/0.2481, allocations: 15.98 kB / 435.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.708e-06/0.2481, allocations: 7.938 kB / 435.8 MB, free: 1.945 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.942e-05/0.2481, allocations: 7.938 kB / 435.8 MB, free: 1.938 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.2482, allocations: 8.219 kB / 435.8 MB, free: 1.93 MB / 334.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 8.953e-05/0.2482, allocations: 117.8 kB / 435.9 MB, free: 1.805 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001256/0.2484, allocations: 77.56 kB / 436 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.654e-05/0.2484, allocations: 12.38 kB / 436 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.2484, allocations: 3.938 kB / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.2484, allocations: 0 / 436 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.2484, allocations: 4 kB / 436 MB, free: 1.699 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.2485, allocations: 141 kB / 436.2 MB, free: 1.52 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.041e-06/0.2486, allocations: 11.92 kB / 436.2 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.768e-05/0.2486, allocations: 12 kB / 436.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.2486, allocations: 4 kB / 436.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.459e-05/0.2486, allocations: 7.922 kB / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.2486, allocations: 0 / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.31e-07/0.2486, allocations: 0 / 436.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00022/0.2489, allocations: 121.9 kB / 436.3 MB, free: 1.344 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.555e-05/0.2489, allocations: 15.88 kB / 436.3 MB, free: 1.328 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.408e-05/0.2489, allocations: 15.94 kB / 436.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.583e-05/0.249, allocations: 7.984 kB / 436.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.507e-05/0.249, allocations: 0 / 436.3 MB, free: 1.305 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.189e-05/0.249, allocations: 8 kB / 436.4 MB, free: 1.297 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.178e-05/0.2491, allocations: 97.09 kB / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2491, allocations: 0 / 436.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002035/0.2493, allocations: 12.19 kB / 436.5 MB, free: 1.191 MB / 334.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.000608/0.2499, allocations: 0.6951 MB / 437.2 MB, free: 476 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.2501, allocations: 55.84 kB / 437.2 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.2501, allocations: 0.5 kB / 437.2 MB, free: 420 kB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 3.888e-05/0.2501, allocations: 19.98 kB / 437.2 MB, free: 400 kB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007167/0.2508, allocations: 0.7168 MB / 437.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001447/0.2523, allocations: 1.414 MB / 439.4 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002919/0.2526, allocations: 0.6924 MB / 440.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.211e-05/0.2526, allocations: 7.969 kB / 440.1 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.609e-05/0.2527, allocations: 19.44 kB / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.2527, allocations: 0 / 440.1 MB, free: 13.37 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03086/0.2835, allocations: 2.121 MB / 442.2 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.89/11.18, allocations: 6.406 kB / 442.2 MB, free: 11.37 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000199561 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedSine.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedSine/TickBasedSine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedSine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,assignClock1.y Variables in the result:time,assignClock1.u,assignClock1.y,sine.y,sineRef.y,periodicClock1.period [Calling sys.exit(0), Time elapsed: 13.689446532000147]