Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.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.005506/0.005506, allocations: 110.7 kB / 21.97 MB, free: 5.25 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.001424/0.001424, allocations: 206.5 kB / 25.27 MB, free: 3.238 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.357/1.357, allocations: 207.6 MB / 236 MB, free: 9.992 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.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.IdealTriacCircuit,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit",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.00165/0.00165, allocations: 47.92 kB / 348 MB, free: 10.02 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2499/0.2516, allocations: 49.15 MB / 397.1 MB, free: 8.969 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.IdealTriacCircuit): time 0.003377/0.2549, allocations: 2.904 MB / 400 MB, free: 6.953 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001025/0.256, allocations: 0.7816 MB / 400.8 MB, free: 6.387 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001317/0.2561, allocations: 9.375 kB / 400.8 MB, free: 6.383 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001453/0.2562, allocations: 47.42 kB / 400.9 MB, free: 6.355 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001592/0.2564, allocations: 100.4 kB / 401 MB, free: 6.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002511/0.2567, allocations: 109.8 kB / 401.1 MB, free: 6.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003404/0.257, allocations: 412.7 kB / 401.5 MB, free: 5.996 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.2572, allocations: 100.5 kB / 401.6 MB, free: 5.93 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001732/0.2574, allocations: 151 kB / 401.7 MB, free: 5.859 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002007/0.2576, allocations: 165.2 kB / 401.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.135e-05/0.2576, allocations: 36.09 kB / 401.9 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.571e-05/0.2577, allocations: 37.38 kB / 402 MB, free: 5.773 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.351e-05/0.2577, allocations: 76.36 kB / 402 MB, free: 5.719 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001379/0.2579, allocations: 180.9 kB / 402.2 MB, free: 5.605 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000422/0.2583, allocations: 435.5 kB / 402.6 MB, free: 5.438 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.2583, allocations: 6.156 kB / 402.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.2583, allocations: 0 / 402.6 MB, free: 5.434 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.702e-06/0.2583, allocations: 0 / 402.6 MB, free: 5.434 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 62 * Number of variables: 62 Notification: Performance of Generate backend data structure: time 0.0008495/0.2591, allocations: 0.5449 MB / 403.2 MB, free: 5.016 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.345e-05/0.2592, allocations: 13.67 kB / 403.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.155e-05/0.2592, allocations: 7.156 kB / 403.2 MB, free: 5.012 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.041e-05/0.2593, allocations: 60.92 kB / 403.3 MB, free: 4.957 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.308e-05/0.2593, allocations: 38.17 kB / 403.3 MB, free: 4.938 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002999/0.2596, allocations: 232.3 kB / 403.5 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.918e-05/0.2596, allocations: 19.22 kB / 403.6 MB, free: 4.727 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.203e-05/0.2597, allocations: 29.41 kB / 403.6 MB, free: 4.715 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004435/0.2601, allocations: 289.7 kB / 403.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.2601, allocations: 0 / 403.9 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.658e-05/0.2602, allocations: 11.31 kB / 403.9 MB, free: 4.555 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.616e-06/0.2602, allocations: 10.16 kB / 403.9 MB, free: 4.551 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000367/0.2605, allocations: 205.8 kB / 404.1 MB, free: 4.477 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00139/0.2619, allocations: 1.11 MB / 405.2 MB, free: 3.68 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004243/0.2623, allocations: 202.8 kB / 405.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002513/0.2626, allocations: 126.1 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.2626, allocations: 2.062 kB / 405.5 MB, free: 3.523 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000249/0.2629, allocations: 170.7 kB / 405.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.2629, allocations: 1 kB / 405.7 MB, free: 3.402 MB / 318.1 MB Notification: Performance of matching and sorting (n=22): time 0.001284/0.2641, allocations: 438.4 kB / 406.1 MB, free: 3.238 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.64e-05/0.2642, allocations: 133.6 kB / 406.2 MB, free: 3.082 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002215/0.2644, allocations: 252 kB / 406.5 MB, free: 2.926 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.2644, allocations: 32.73 kB / 406.5 MB, free: 2.891 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.224e-05/0.2645, allocations: 170 kB / 406.7 MB, free: 2.746 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.595e-05/0.2646, allocations: 74.5 kB / 406.8 MB, free: 2.688 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.912e-05/0.2646, allocations: 51.22 kB / 406.8 MB, free: 2.652 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.43e-05/0.2647, allocations: 335 kB / 407.1 MB, free: 2.328 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001448/0.2648, allocations: 71.95 kB / 407.2 MB, free: 2.301 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001738/0.265, allocations: 122.4 kB / 407.3 MB, free: 2.219 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002518/0.2653, allocations: 172.1 kB / 407.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-06/0.2653, allocations: 1.25 kB / 407.5 MB, free: 2.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=29) (initialization): time 0.0004363/0.2657, allocations: 290.8 kB / 407.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.2657, allocations: 5.047 kB / 407.8 MB, free: 1.969 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.678e-06/0.2657, allocations: 5.375 kB / 407.8 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003055/0.266, allocations: 87.34 kB / 407.9 MB, free: 1.934 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.2662, allocations: 30.08 kB / 407.9 MB, free: 1.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.2678, allocations: 2.027 MB / 409.9 MB, free: 204 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000199/0.268, allocations: 33.02 kB / 410 MB, free: 188 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.663e-05/0.2681, allocations: 9.5 kB / 410 MB, free: 184 kB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition1,idealTriac.fire1,idealTriac.idealThyristor1.off,$PRE.idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off,$PRE.idealTriac.idealThyristor.off,booleanPulse.pulseStart,$PRE.booleanPulse.pulseStart) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 18 * 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 {(2,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001115/0.2682, allocations: 151.9 kB / 410.1 MB, free: 40 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.708e-05/0.2682, allocations: 32.98 kB / 410.2 MB, free: 20 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.174e-05/0.2683, allocations: 34.44 kB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.2683, allocations: 3.172 kB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.615e-06/0.2683, allocations: 5.344 kB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.2683, allocations: 1.406 kB / 410.2 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009966/0.2693, allocations: 0.7367 MB / 410.9 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.7e-06/0.2693, allocations: 6.516 kB / 410.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001087/0.2694, allocations: 21.67 kB / 411 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002514/0.2697, allocations: 85.55 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.2697, allocations: 7.297 kB / 411.1 MB, free: 15.41 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002253/0.2719, allocations: 2.043 MB / 413.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2719, allocations: 1.25 kB / 413.1 MB, free: 13.67 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006898/0.2726, allocations: 453.5 kB / 413.5 MB, free: 13.39 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000106/0.2727, allocations: 46.56 kB / 413.6 MB, free: 13.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.2728, allocations: 9.25 kB / 413.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.273, allocations: 18.25 kB / 413.6 MB, free: 13.35 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.603e-05/0.2731, allocations: 35.55 kB / 413.6 MB, free: 13.34 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.505e-05/0.2731, allocations: 6.406 kB / 413.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00018/0.2733, allocations: 178.6 kB / 413.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2733, allocations: 0 / 413.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004513/0.2737, allocations: 92.75 kB / 413.9 MB, free: 13.21 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (idealTriac.capacitor.v) * Number of discrete variables: 5 ($whenCondition1,booleanPulse.pulseStart,idealTriac.idealThyristor.off,idealTriac.idealThyristor1.off,idealTriac.fire1) * Number of discrete states: 2 (idealTriac.idealThyristor1.off,idealTriac.idealThyristor.off) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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 {(2,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001016/0.2747, allocations: 0.9875 MB / 414.9 MB, free: 12.39 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006736/0.2754, allocations: 343.4 kB / 415.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.2754, allocations: 0 / 415.2 MB, free: 12.19 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004191/0.2758, allocations: 268.5 kB / 415.5 MB, free: 12 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.2762, allocations: 49.92 kB / 415.6 MB, free: 11.99 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003744/0.28, allocations: 2.769 MB / 418.3 MB, free: 10.07 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004597/0.2804, allocations: 0.7659 MB / 419.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.2805, allocations: 17.36 kB / 419.1 MB, free: 9.328 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001262/0.2807, allocations: 83.44 kB / 419.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of SimCode: time 7.12e-07/0.2807, allocations: 0 / 419.2 MB, free: 9.258 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03597/0.3166, allocations: 7.856 MB / 427 MB, free: 4.543 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.08/12.4, allocations: 11.88 kB / 427.1 MB, free: 4.531 MB / 334.1 MB " [Timeout remaining time 647] (rm -f Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit_fmu --startTime=0 --stopTime=2 --stepSize=0.00039604 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Analog_Examples_IdealTriacCircuit.fmu > Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Analog/Examples/IdealTriacCircuit/IdealTriacCircuit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Analog.Examples.IdealTriacCircuit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.907677547016647]