Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo", uses=false) Using package IndustrialControlSystems with version 1.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") translateModel(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001375/0.001374, allocations: 110.4 kB / 16.41 MB, free: 6.492 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001202/0.001202, allocations: 185.5 kB / 17.34 MB, free: 5.766 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.458/1.458, allocations: 205.1 MB / 223.2 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IndustrialControlSystems 1.1.0-master/package.mo): time 0.05853/0.05853, allocations: 10.73 MB / 281.3 MB, free: 1.305 MB / 222.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00142/0.00142, allocations: 73.05 kB / 391.5 MB, free: 45.99 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08656/0.08799, allocations: 49.03 MB / 440.5 MB, free: 3.84 MB / 318.1 MB Notification: Performance of NFInst.instantiate(IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop): time 0.003132/0.09116, allocations: 1.944 MB / 442.5 MB, free: 1.879 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001621/0.09281, allocations: 1.116 MB / 443.6 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00021/0.09305, allocations: 7.875 kB / 443.6 MB, free: 0.7461 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007946/0.09389, allocations: 317.9 kB / 443.9 MB, free: 448 kB / 318.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0004319/0.09433, allocations: 207.3 kB / 444.1 MB, free: 240 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006457/0.09499, allocations: 262.9 kB / 444.4 MB, free: 15.98 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004484/0.09545, allocations: 343.1 kB / 444.7 MB, free: 15.64 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001453/0.0956, allocations: 48.33 kB / 444.8 MB, free: 15.59 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002321/0.09585, allocations: 139.5 kB / 444.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002307/0.09608, allocations: 151.4 kB / 445 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.413e-05/0.09614, allocations: 16 kB / 445.1 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000216/0.09636, allocations: 99.86 kB / 445.1 MB, free: 15.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001175/0.09649, allocations: 87.73 kB / 445.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.09662, allocations: 123.2 kB / 445.4 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004558/0.09709, allocations: 362.7 kB / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.0971, allocations: 0 / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.09711, allocations: 0 / 445.7 MB, free: 14.63 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.556e-06/0.09712, allocations: 0 / 445.7 MB, free: 14.63 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001098/0.09823, allocations: 0.6766 MB / 446.4 MB, free: 13.89 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.339e-05/0.09828, allocations: 11.89 kB / 446.4 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.09838, allocations: 32.56 kB / 446.4 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004954/0.09889, allocations: 338.3 kB / 446.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.593e-05/0.09891, allocations: 8.312 kB / 446.8 MB, free: 13.47 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.817e-05/0.09895, allocations: 16.12 kB / 446.8 MB, free: 13.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002902/0.09924, allocations: 140 kB / 446.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.076e-05/0.09927, allocations: 3.984 kB / 446.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.09929, allocations: 4 kB / 446.9 MB, free: 13.3 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.442e-06/0.0993, allocations: 4 kB / 446.9 MB, free: 13.29 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001506/0.09946, allocations: 51.97 kB / 447 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006856/0.1002, allocations: 468.4 kB / 447.4 MB, free: 12.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003188/0.1005, allocations: 138.8 kB / 447.6 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001123/0.1006, allocations: 48.84 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.617e-05/0.1006, allocations: 3.984 kB / 447.6 MB, free: 12.54 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002457/0.1009, allocations: 123.3 kB / 447.7 MB, free: 12.4 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.613e-06/0.1009, allocations: 4 kB / 447.8 MB, free: 12.4 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005439/0.1015, allocations: 232.6 kB / 448 MB, free: 12.17 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.713e-05/0.1015, allocations: 114.7 kB / 448.1 MB, free: 12.03 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005123/0.1021, allocations: 469.7 kB / 448.5 MB, free: 11.56 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.519e-05/0.1021, allocations: 33.64 kB / 448.6 MB, free: 11.52 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001326/0.1022, allocations: 172.3 kB / 448.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.902e-05/0.1023, allocations: 31.55 kB / 448.8 MB, free: 11.32 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.927e-05/0.1024, allocations: 45.7 kB / 448.8 MB, free: 11.27 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.1025, allocations: 354.7 kB / 449.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001102/0.1026, allocations: 39.97 kB / 449.2 MB, free: 10.87 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001729/0.1028, allocations: 125.4 kB / 449.3 MB, free: 10.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002317/0.103, allocations: 133.9 kB / 449.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/0.1031, allocations: 4 kB / 449.5 MB, free: 10.56 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003616/0.1034, allocations: 196.9 kB / 449.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.651e-05/0.1034, allocations: 4 kB / 449.7 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1035, allocations: 4 kB / 449.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.013e-05/0.1035, allocations: 4 kB / 449.7 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.1036, allocations: 27.92 kB / 449.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.081e-05/0.1036, allocations: 4 kB / 449.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001231/0.1038, allocations: 24.08 kB / 449.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.351e-05/0.1038, allocations: 4 kB / 449.7 MB, free: 10.29 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: 17 (flipFlopSR.y1,$PRE.flipFlopSR.y1,flipFlopSR.y2,$PRE.flipFlopSR.y2,$PRE.resetSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition3,$PRE.setSIGNAL.combiTimeTable.nextTimeEvent,$whenCondition2,$whenCondition1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.resetSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEventScaled,$PRE.setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 0.0001669/0.104, allocations: 188.1 kB / 449.9 MB, free: 10.09 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.104, allocations: 39.47 kB / 450 MB, free: 10.05 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.262e-05/0.1041, allocations: 30.98 kB / 450 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.1041, allocations: 0 / 450 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.84e-06/0.1041, allocations: 0 / 450 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.607e-06/0.1041, allocations: 0 / 450 MB, free: 10.03 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000271/0.1044, allocations: 301.4 kB / 450.3 MB, free: 9.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.1044, allocations: 4 kB / 450.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.985e-05/0.1045, allocations: 19.86 kB / 450.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.1045, allocations: 0 / 450.3 MB, free: 9.66 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.1045, allocations: 4 kB / 450.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.1045, allocations: 0 / 450.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.1045, allocations: 0 / 450.3 MB, free: 9.656 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003888/0.1049, allocations: 220.6 kB / 450.5 MB, free: 9.422 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.56e-05/0.105, allocations: 116.6 kB / 450.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.658e-05/0.105, allocations: 0 / 450.6 MB, free: 9.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.456e-05/0.1051, allocations: 19.92 kB / 450.7 MB, free: 9.27 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.327e-05/0.1052, allocations: 7.984 kB / 450.7 MB, free: 9.262 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.91e-05/0.1052, allocations: 8 kB / 450.7 MB, free: 9.254 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0003912/0.1056, allocations: 347.1 kB / 451 MB, free: 8.918 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1056, allocations: 0 / 451 MB, free: 8.918 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003167/0.106, allocations: 55.98 kB / 451.1 MB, free: 8.863 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition3,$whenCondition2,$whenCondition1,flipFlopSR.y1,flipFlopSR.y2,setSIGNAL.y,setSIGNAL.combiTimeTable.nextTimeEvent,setSIGNAL.combiTimeTable.nextTimeEventScaled,resetSIGNAL.y,resetSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEventScaled) * Number of discrete states: 5 (flipFlopSR.y1,resetSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEventScaled,setSIGNAL.combiTimeTable.nextTimeEvent,resetSIGNAL.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * 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.0009904/0.107, allocations: 437.9 kB / 451.5 MB, free: 8.547 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.1073, allocations: 127.8 kB / 451.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1073, allocations: 0 / 451.6 MB, free: 8.422 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001347/0.1075, allocations: 63.95 kB / 451.7 MB, free: 8.359 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004369/0.1079, allocations: 66.56 kB / 451.7 MB, free: 8.297 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008627/0.1088, allocations: 0.5609 MB / 452.3 MB, free: 7.699 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003432/0.1091, allocations: 0.7714 MB / 453.1 MB, free: 6.902 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.679e-05/0.1092, allocations: 39.36 kB / 453.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1092, allocations: 0 / 453.1 MB, free: 6.863 MB / 334.1 MB Notification: Performance of Templates: time 0.007705/0.1169, allocations: 4.449 MB / 457.6 MB, free: 2.414 MB / 334.1 MB make -j1 -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.makefile (rm -f IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; mkfifo IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe ; head -c 1048576 < IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe >> ../files/IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.sim & ./IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop -abortSlowSimulation -alarm=480 -lv LOG_STATS > IndustrialControlSystems_IndustrialControlSystems.Logical.LogicalOperations.Examples.FliFlop.pipe 2>&1)